diff options
author | Marco Stornelli <marco.stornelli@gmail.com> | 2012-12-15 05:48:48 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-20 14:00:01 -0500 |
commit | 46f69557103e11fb963ae5c98b7777e90493241b (patch) | |
tree | 94aa3fb8c7f6b6dd10f7f43a81ddcc4946f0c0de /fs/proc/generic.c | |
parent | cfac4b47c664e207740880d6492938761c53d74b (diff) |
procfs: drop vmtruncate
Removed vmtruncate
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc/generic.c')
-rw-r--r-- | fs/proc/generic.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index 7b3ae3cc0ef9..2e4ed13b9eed 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c | |||
@@ -261,16 +261,9 @@ static int proc_notify_change(struct dentry *dentry, struct iattr *iattr) | |||
261 | if (error) | 261 | if (error) |
262 | return error; | 262 | return error; |
263 | 263 | ||
264 | if ((iattr->ia_valid & ATTR_SIZE) && | ||
265 | iattr->ia_size != i_size_read(inode)) { | ||
266 | error = vmtruncate(inode, iattr->ia_size); | ||
267 | if (error) | ||
268 | return error; | ||
269 | } | ||
270 | |||
271 | setattr_copy(inode, iattr); | 264 | setattr_copy(inode, iattr); |
272 | mark_inode_dirty(inode); | 265 | mark_inode_dirty(inode); |
273 | 266 | ||
274 | de->uid = inode->i_uid; | 267 | de->uid = inode->i_uid; |
275 | de->gid = inode->i_gid; | 268 | de->gid = inode->i_gid; |
276 | de->mode = inode->i_mode; | 269 | de->mode = inode->i_mode; |