fs: Give dentry to inode_change_ok() instead of inode
[pandora-kernel.git] / fs / ramfs / file-nommu.c
index d5378d0..b79c545 100644 (file)
@@ -164,7 +164,7 @@ static int ramfs_nommu_setattr(struct dentry *dentry, struct iattr *ia)
        int ret = 0;
 
        /* POSIX UID/GID verification for setting inode attributes */
-       ret = inode_change_ok(inode, ia);
+       ret = setattr_prepare(dentry, ia);
        if (ret)
                return ret;