aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/bmap.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-01-31 05:00:25 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-01-31 05:00:25 -0500
commit257f9b4e97e9a6cceeb247cead92119a4396d37b (patch)
tree5bd94507046b09a9d6cc067c1dcc1124fbaa4016 /fs/gfs2/bmap.c
parentf42faf4fa4eaf7e108dd60f3f2ca5c6e9b45352c (diff)
[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 ff4a9175b4e1..bd194f645c52 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)
872 if (do_div(junk, sdp->sd_jbsize)) 872 if (do_div(junk, sdp->sd_jbsize))
873 error = truncator_journaled(ip, size); 873 error = truncator_journaled(ip, size);
874 } else if (size & (uint64_t)(sdp->sd_sb.sb_bsize - 1)) 874 } else if (size & (uint64_t)(sdp->sd_sb.sb_bsize - 1))
875 error = gfs2_truncator_page(ip, size); 875 error = gfs2_block_truncate_page(ip->i_vnode->i_mapping);
876 876
877 if (!error) { 877 if (!error) {
878 ip->i_di.di_size = size; 878 ip->i_di.di_size = size;