diff options
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r-- | fs/gfs2/bmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index 5e2f56fccf6b..62a65fc448dc 100644 --- a/fs/gfs2/bmap.c +++ b/fs/gfs2/bmap.c | |||
@@ -1016,7 +1016,7 @@ static int gfs2_journaled_truncate(struct inode *inode, u64 oldsize, u64 newsize | |||
1016 | chunk = oldsize - newsize; | 1016 | chunk = oldsize - newsize; |
1017 | if (chunk > max_chunk) | 1017 | if (chunk > max_chunk) |
1018 | chunk = max_chunk; | 1018 | chunk = max_chunk; |
1019 | truncate_pagecache(inode, oldsize, oldsize - chunk); | 1019 | truncate_pagecache(inode, oldsize - chunk); |
1020 | oldsize -= chunk; | 1020 | oldsize -= chunk; |
1021 | gfs2_trans_end(sdp); | 1021 | gfs2_trans_end(sdp); |
1022 | error = gfs2_trans_begin(sdp, RES_DINODE, GFS2_JTRUNC_REVOKES); | 1022 | error = gfs2_trans_begin(sdp, RES_DINODE, GFS2_JTRUNC_REVOKES); |
@@ -1067,7 +1067,7 @@ static int trunc_start(struct inode *inode, u64 oldsize, u64 newsize) | |||
1067 | if (journaled) | 1067 | if (journaled) |
1068 | error = gfs2_journaled_truncate(inode, oldsize, newsize); | 1068 | error = gfs2_journaled_truncate(inode, oldsize, newsize); |
1069 | else | 1069 | else |
1070 | truncate_pagecache(inode, oldsize, newsize); | 1070 | truncate_pagecache(inode, newsize); |
1071 | 1071 | ||
1072 | if (error) { | 1072 | if (error) { |
1073 | brelse(dibh); | 1073 | brelse(dibh); |