fs: Give dentry to inode_change_ok() instead of inode
[pandora-kernel.git] / fs / ext3 / inode.c
index 71b263f..d12f961 100644 (file)
@@ -3271,7 +3271,7 @@ int ext3_setattr(struct dentry *dentry, struct iattr *attr)
        int error, rc = 0;
        const unsigned int ia_valid = attr->ia_valid;
 
-       error = inode_change_ok(inode, attr);
+       error = setattr_prepare(dentry, attr);
        if (error)
                return error;