-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux 4.9 compat: change inode_change_ok to setattr_prepare
torvalds/linux@31051c8 inode_change_ok is changed to setattr_prepare and takes dentry Signed-off-by: Chunwei Chen <[email protected]> Requires-spl: refs/pull/581/head
- Loading branch information
Chunwei Chen
committed
Oct 19, 2016
1 parent
dc1bb65
commit 854a364
Showing
4 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
dnl # | ||
dnl # 4.9 API change, | ||
dnl # inode_change_ok is changed to setattr_prepare and takes dentry | ||
dnl # | ||
AC_DEFUN([ZFS_AC_KERNEL_SETATTR_PREPARE], [ | ||
AC_MSG_CHECKING([whether setattr_prepare() exists]) | ||
ZFS_LINUX_TRY_COMPILE([ | ||
#include <linux/fs.h> | ||
],[ | ||
setattr_prepare(NULL, NULL); | ||
],[ | ||
AC_MSG_RESULT(yes) | ||
AC_DEFINE(HAVE_SETATTR_PREPARE, 1, [setattr_prepare() exists]) | ||
],[ | ||
AC_MSG_RESULT(no) | ||
]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters