fs: Give dentry to inode_change_ok() instead of inode
[pandora-kernel.git] / fs / affs / inode.c
index 88a4b0b..abda0dc 100644 (file)
@@ -222,7 +222,7 @@ affs_notify_change(struct dentry *dentry, struct iattr *attr)
 
        pr_debug("AFFS: notify_change(%lu,0x%x)\n",inode->i_ino,attr->ia_valid);
 
-       error = inode_change_ok(inode,attr);
+       error = setattr_prepare(dentry, attr);
        if (error)
                goto out;