Merge remote-tracking branch 'jk/vfs' into work.misc
[cascardo/linux.git] / fs / proc / base.c
index 528c1bb..09f0f17 100644 (file)
@@ -692,7 +692,7 @@ int proc_setattr(struct dentry *dentry, struct iattr *attr)
        if (attr->ia_valid & ATTR_MODE)
                return -EPERM;
 
-       error = inode_change_ok(inode, attr);
+       error = setattr_prepare(dentry, attr);
        if (error)
                return error;