fs: Give dentry to inode_change_ok() instead of inode
[cascardo/linux.git] / fs / hfsplus / inode.c
index 19462d7..c43ef39 100644 (file)
@@ -245,7 +245,7 @@ static int hfsplus_setattr(struct dentry *dentry, struct iattr *attr)
        struct inode *inode = d_inode(dentry);
        int error;
 
-       error = inode_change_ok(inode, attr);
+       error = setattr_prepare(dentry, attr);
        if (error)
                return error;