diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-01-31 10:00:25 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-01-31 10:00:25 +0000 |
commit | 257f9b4e97e9a6cceeb247cead92119a4396d37b (patch) | |
tree | 5bd94507046b09a9d6cc067c1dcc1124fbaa4016 /fs/gfs2/ops_address.c | |
parent | f42faf4fa4eaf7e108dd60f3f2ca5c6e9b45352c (diff) | |
download | op-kernel-dev-257f9b4e97e9a6cceeb247cead92119a4396d37b.zip op-kernel-dev-257f9b4e97e9a6cceeb247cead92119a4396d37b.tar.gz |
[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/ops_address.c')
-rw-r--r-- | fs/gfs2/ops_address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c index da5a0b4..d611b2a 100644 --- a/fs/gfs2/ops_address.c +++ b/fs/gfs2/ops_address.c @@ -385,7 +385,7 @@ static int gfs2_commit_write(struct file *file, struct page *page, i_size_write(inode, file_size); } else { if (sdp->sd_args.ar_data == GFS2_DATA_ORDERED) - gfs2_page_add_databufs(sdp, page, from, to); + gfs2_page_add_databufs(ip, page, from, to); error = generic_commit_write(file, page, from, to); if (error) goto fail; |