diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2013-09-12 18:13:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-12 18:38:02 -0400 |
commit | 7caef26767c1727d7abfbbbfbe8b2bb473430d48 (patch) | |
tree | 909e2a3c1b0a20a976fa3f84a17a00f8a21607bf /fs/ext4 | |
parent | 5fbc461636c32efdb9d5216d491d37a40d54535b (diff) |
truncate: drop 'oldsize' truncate_pagecache() parameter
truncate_pagecache() doesn't care about old size since commit
cedabed49b39 ("vfs: Fix vmtruncate() regression"). Let's drop it.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index c79fd7dabe79..0d424d7ac02b 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -4587,7 +4587,6 @@ int ext4_setattr(struct dentry *dentry, struct iattr *attr) | |||
4587 | 4587 | ||
4588 | if (attr->ia_valid & ATTR_SIZE && attr->ia_size != inode->i_size) { | 4588 | if (attr->ia_valid & ATTR_SIZE && attr->ia_size != inode->i_size) { |
4589 | handle_t *handle; | 4589 | handle_t *handle; |
4590 | loff_t oldsize = inode->i_size; | ||
4591 | 4590 | ||
4592 | if (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))) { | 4591 | if (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))) { |
4593 | struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); | 4592 | struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); |
@@ -4650,7 +4649,7 @@ int ext4_setattr(struct dentry *dentry, struct iattr *attr) | |||
4650 | * Truncate pagecache after we've waited for commit | 4649 | * Truncate pagecache after we've waited for commit |
4651 | * in data=journal mode to make pages freeable. | 4650 | * in data=journal mode to make pages freeable. |
4652 | */ | 4651 | */ |
4653 | truncate_pagecache(inode, oldsize, inode->i_size); | 4652 | truncate_pagecache(inode, inode->i_size); |
4654 | } | 4653 | } |
4655 | /* | 4654 | /* |
4656 | * We want to call ext4_truncate() even if attr->ia_size == | 4655 | * We want to call ext4_truncate() even if attr->ia_size == |