Merge remote-tracking branch 'jk/vfs' into work.misc
[cascardo/linux.git] / fs / ext4 / inode.c
index c6ea25a..b27491e 100644 (file)
@@ -5073,7 +5073,7 @@ int ext4_setattr(struct dentry *dentry, struct iattr *attr)
        int orphan = 0;
        const unsigned int ia_valid = attr->ia_valid;
 
-       error = inode_change_ok(inode, attr);
+       error = setattr_prepare(dentry, attr);
        if (error)
                return error;