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/fuse | |
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/fuse')
-rw-r--r-- | fs/fuse/dir.c | 2 | ||||
-rw-r--r-- | fs/fuse/inode.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 3ac91086f41f..62b43b577bfc 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c | |||
@@ -1678,7 +1678,7 @@ int fuse_do_setattr(struct inode *inode, struct iattr *attr, | |||
1678 | * FUSE_NOWRITE, otherwise fuse_launder_page() would deadlock. | 1678 | * FUSE_NOWRITE, otherwise fuse_launder_page() would deadlock. |
1679 | */ | 1679 | */ |
1680 | if (S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { | 1680 | if (S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { |
1681 | truncate_pagecache(inode, oldsize, outarg.attr.size); | 1681 | truncate_pagecache(inode, outarg.attr.size); |
1682 | invalidate_inode_pages2(inode->i_mapping); | 1682 | invalidate_inode_pages2(inode->i_mapping); |
1683 | } | 1683 | } |
1684 | 1684 | ||
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 84434594e80e..a8ce6dab60a0 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -218,7 +218,7 @@ void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr, | |||
218 | bool inval = false; | 218 | bool inval = false; |
219 | 219 | ||
220 | if (oldsize != attr->size) { | 220 | if (oldsize != attr->size) { |
221 | truncate_pagecache(inode, oldsize, attr->size); | 221 | truncate_pagecache(inode, attr->size); |
222 | inval = true; | 222 | inval = true; |
223 | } else if (fc->auto_inval_data) { | 223 | } else if (fc->auto_inval_data) { |
224 | struct timespec new_mtime = { | 224 | struct timespec new_mtime = { |