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/base.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/base.c')
-rw-r--r-- | fs/proc/base.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 5a5a0be40e40..9b43ff77a51e 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -542,13 +542,6 @@ int proc_setattr(struct dentry *dentry, struct iattr *attr) | |||
542 | if (error) | 542 | if (error) |
543 | return error; | 543 | return error; |
544 | 544 | ||
545 | if ((attr->ia_valid & ATTR_SIZE) && | ||
546 | attr->ia_size != i_size_read(inode)) { | ||
547 | error = vmtruncate(inode, attr->ia_size); | ||
548 | if (error) | ||
549 | return error; | ||
550 | } | ||
551 | |||
552 | setattr_copy(inode, attr); | 545 | setattr_copy(inode, attr); |
553 | mark_inode_dirty(inode); | 546 | mark_inode_dirty(inode); |
554 | return 0; | 547 | return 0; |