Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux 4.12 compat: CURRENT_TIME removed #6114

Merged
merged 1 commit into from
May 10, 2017

Conversation

behlendorf
Copy link
Contributor

Linux 4.9 added current_time() as the preferred interface to get
the filesystem time. CURRENT_TIME was retired in Linux 4.12.

@mention-bot
Copy link

@behlendorf, thanks for your PR! By analyzing the history of the files in this pull request, we identified @tuxoko, @ryao and @prakashsurya to be potential reviewers.

@behlendorf behlendorf requested a review from tuxoko May 9, 2017 20:36
@tuxoko
Copy link
Contributor

tuxoko commented May 9, 2017

torvalds/linux@3cd8866

current_fs_time() will be deleted after all the references
to it are replaced by current_time().

We have a few instance of current_fs_time() in zpl_xattr.c and zfs_ctldir.c

@behlendorf
Copy link
Contributor Author

Good idea. PR refreshed to replace current_fs_time() with current_time().

Linux 4.9 added current_time() as the preferred interface to get
the filesystem time.  CURRENT_TIME was retired in Linux 4.12.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
@behlendorf behlendorf merged commit 2946a1a into openzfs:master May 10, 2017
@tonyhutter tonyhutter added the Type: Building Indicates an issue related to building binaries label Jun 5, 2017
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Jun 5, 2017
Linux 4.9 added current_time() as the preferred interface to get
the filesystem time.  CURRENT_TIME was retired in Linux 4.12.

Reviewed-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#6114
tonyhutter pushed a commit that referenced this pull request Jun 9, 2017
Linux 4.9 added current_time() as the preferred interface to get
the filesystem time.  CURRENT_TIME was retired in Linux 4.12.

Reviewed-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6114
@behlendorf behlendorf deleted the current-time branch April 19, 2021 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Building Indicates an issue related to building binaries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants