3 dnl # The inode_change_ok() function has been renamed setattr_prepare()
4 dnl # and updated to take a dentry rather than an inode.
6 AC_DEFUN([ZFS_AC_KERNEL_SETATTR_PREPARE],
7 [AC_MSG_CHECKING([whether setattr_prepare() is available])
8 ZFS_LINUX_TRY_COMPILE_SYMBOL([
11 struct dentry *dentry = NULL;
12 struct iattr *attr = NULL;
15 error = setattr_prepare(dentry, attr);
16 ], [setattr_prepare], [fs/attr.c], [
18 AC_DEFINE(HAVE_SETATTR_PREPARE, 1,
19 [setattr_prepare() is available])