diff options
author | Brian Behlendorf <[email protected]> | 2016-10-18 23:49:23 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-02-03 10:24:06 -0800 |
commit | f85c85ea060ee2075f30b25b33bb28e82bd3cb12 (patch) | |
tree | 13053e8bc2091eedb95b867e817c742941aaefdc /module/zfs | |
parent | 670508f080ebad88825344d0670537becdaa943e (diff) |
Linux 4.9 compat: inode_change_ok() renamed setattr_prepare()
In torvalds/linux@31051c8 the inode_change_ok() function was
renamed setattr_prepare() and updated to take a dentry ratheri
than an inode. Update the code to call the setattr_prepare()
and add a wrapper function which call inode_change_ok() for
older kernels.
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/zpl_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zpl_inode.c b/module/zfs/zpl_inode.c index d609f518b..bd9324190 100644 --- a/module/zfs/zpl_inode.c +++ b/module/zfs/zpl_inode.c @@ -324,7 +324,7 @@ zpl_setattr(struct dentry *dentry, struct iattr *ia) int error; fstrans_cookie_t cookie; - error = inode_change_ok(ip, ia); + error = setattr_prepare(dentry, ia); if (error) return (error); |