diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-10-08 11:06:08 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-10-08 11:06:08 -0400 |
commit | e55f1d1d13e7f1c364672d667d78fd1f640ab9f9 (patch) | |
tree | 406a3c127abb008f2f736c8d2ee03fc3c2926d6b /fs/proc | |
parent | f334bcd94b7d3c0fbc34d518a86548f451ab5faf (diff) | |
parent | 030b533c4fd4d2ec3402363323de4bb2983c9cee (diff) |
Merge remote-tracking branch 'jk/vfs' into work.misc
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 2 | ||||
-rw-r--r-- | fs/proc/generic.c | 2 | ||||
-rw-r--r-- | fs/proc/proc_sysctl.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 528c1bb57bc3..09f0f173821a 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -692,7 +692,7 @@ int proc_setattr(struct dentry *dentry, struct iattr *attr) | |||
692 | if (attr->ia_valid & ATTR_MODE) | 692 | if (attr->ia_valid & ATTR_MODE) |
693 | return -EPERM; | 693 | return -EPERM; |
694 | 694 | ||
695 | error = inode_change_ok(inode, attr); | 695 | error = setattr_prepare(dentry, attr); |
696 | if (error) | 696 | if (error) |
697 | return error; | 697 | return error; |
698 | 698 | ||
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index c633476616e0..23ff30e3c1e7 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c | |||
@@ -105,7 +105,7 @@ static int proc_notify_change(struct dentry *dentry, struct iattr *iattr) | |||
105 | struct proc_dir_entry *de = PDE(inode); | 105 | struct proc_dir_entry *de = PDE(inode); |
106 | int error; | 106 | int error; |
107 | 107 | ||
108 | error = inode_change_ok(inode, iattr); | 108 | error = setattr_prepare(dentry, iattr); |
109 | if (error) | 109 | if (error) |
110 | return error; | 110 | return error; |
111 | 111 | ||
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 1b93650dda2f..268fcf592b0e 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -754,7 +754,7 @@ static int proc_sys_setattr(struct dentry *dentry, struct iattr *attr) | |||
754 | if (attr->ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID)) | 754 | if (attr->ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID)) |
755 | return -EPERM; | 755 | return -EPERM; |
756 | 756 | ||
757 | error = inode_change_ok(inode, attr); | 757 | error = setattr_prepare(dentry, attr); |
758 | if (error) | 758 | if (error) |
759 | return error; | 759 | return error; |
760 | 760 | ||