fs: Give dentry to inode_change_ok() instead of inode
[pandora-kernel.git] / fs / ext4 / inode.c
index 2b534b5..ff2e369 100644 (file)
@@ -4291,7 +4291,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;