fs: Give dentry to inode_change_ok() instead of inode
[linux-block.git] / fs / ncpfs / inode.c
index 1af15fcbe57b74c74c85dff9b956be07bea49f79..f6cf4c7e92b1b8c3cf7e7846aa4c968a24829b03 100644 (file)
@@ -884,7 +884,7 @@ int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
        /* ageing the dentry to force validation */
        ncp_age_dentry(server, dentry);
 
-       result = inode_change_ok(inode, attr);
+       result = setattr_prepare(dentry, attr);
        if (result < 0)
                goto out;