summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/bmap.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-01-31 10:00:25 +0000
committerSteven Whitehouse <swhiteho@redhat.com>2006-01-31 10:00:25 +0000
commit257f9b4e97e9a6cceeb247cead92119a4396d37b (patch)
tree5bd94507046b09a9d6cc067c1dcc1124fbaa4016 /fs/gfs2/bmap.c
parentf42faf4fa4eaf7e108dd60f3f2ca5c6e9b45352c (diff)
downloadkernel-crypto-257f9b4e97e9a6cceeb247cead92119a4396d37b.tar.gz
kernel-crypto-257f9b4e97e9a6cceeb247cead92119a4396d37b.tar.xz
kernel-crypto-257f9b4e97e9a6cceeb247cead92119a4396d37b.zip
[GFS2] Update truncate function (shrinking partial blocks)
Update the function in GFS2 which deals with truncation of partial blocks. Some of the code is "borrowed" from ext3 since it appears to give a good model of how to do this operation. The function is renamed gfs2_block_truncate_page accordingly. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r--fs/gfs2/bmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index ff4a9175b4e..bd194f645c5 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -872,7 +872,7 @@ static int trunc_start(struct gfs2_inode *ip, uint64_t size)
if (do_div(junk, sdp->sd_jbsize))
error = truncator_journaled(ip, size);
} else if (size & (uint64_t)(sdp->sd_sb.sb_bsize - 1))
- error = gfs2_truncator_page(ip, size);
+ error = gfs2_block_truncate_page(ip->i_vnode->i_mapping);
if (!error) {
ip->i_di.di_size = size;