fs: Give dentry to inode_change_ok() instead of inode
[pandora-kernel.git] / fs / proc / generic.c
index 10090d9..d0d6bb6 100644 (file)
@@ -257,7 +257,7 @@ static int proc_notify_change(struct dentry *dentry, struct iattr *iattr)
        struct proc_dir_entry *de = PDE(inode);
        int error;
 
-       error = inode_change_ok(inode, iattr);
+       error = setattr_prepare(dentry, iattr);
        if (error)
                return error;