fs: Give dentry to inode_change_ok() instead of inode
[pandora-kernel.git] / fs / libfs.c
index ce85edf..d2f43c9 100644 (file)
@@ -364,7 +364,7 @@ int simple_setattr(struct dentry *dentry, struct iattr *iattr)
 
        WARN_ON_ONCE(inode->i_op->truncate);
 
-       error = inode_change_ok(inode, iattr);
+       error = setattr_prepare(dentry, iattr);
        if (error)
                return error;