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/btrfs/inode.c | |
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/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 7bdc83d04d54..82fdd7059d10 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -4409,7 +4409,7 @@ static int btrfs_setsize(struct inode *inode, struct iattr *attr) | |||
4409 | inode->i_ctime = inode->i_mtime = current_fs_time(inode->i_sb); | 4409 | inode->i_ctime = inode->i_mtime = current_fs_time(inode->i_sb); |
4410 | 4410 | ||
4411 | if (newsize > oldsize) { | 4411 | if (newsize > oldsize) { |
4412 | truncate_pagecache(inode, oldsize, newsize); | 4412 | truncate_pagecache(inode, newsize); |
4413 | ret = btrfs_cont_expand(inode, oldsize, newsize); | 4413 | ret = btrfs_cont_expand(inode, oldsize, newsize); |
4414 | if (ret) | 4414 | if (ret) |
4415 | return ret; | 4415 | return ret; |