fs: Give dentry to inode_change_ok() instead of inode
[pandora-kernel.git] / fs / hfs / inode.c
index a1a9fdc..532d6cb 100644 (file)
@@ -588,7 +588,7 @@ int hfs_inode_setattr(struct dentry *dentry, struct iattr * attr)
        struct hfs_sb_info *hsb = HFS_SB(inode->i_sb);
        int error;
 
-       error = inode_change_ok(inode, attr); /* basic permission checks */
+       error = setattr_prepare(dentry, attr); /* basic permission checks */
        if (error)
                return error;