diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-01-31 05:00:25 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-01-31 05:00:25 -0500 |
commit | 257f9b4e97e9a6cceeb247cead92119a4396d37b (patch) | |
tree | 5bd94507046b09a9d6cc067c1dcc1124fbaa4016 /fs/gfs2/ops_address.c | |
parent | f42faf4fa4eaf7e108dd60f3f2ca5c6e9b45352c (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/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 da5a0b445188..d611b2ad2e97 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, | |||
385 | i_size_write(inode, file_size); | 385 | i_size_write(inode, file_size); |
386 | } else { | 386 | } else { |
387 | if (sdp->sd_args.ar_data == GFS2_DATA_ORDERED) | 387 | if (sdp->sd_args.ar_data == GFS2_DATA_ORDERED) |
388 | gfs2_page_add_databufs(sdp, page, from, to); | 388 | gfs2_page_add_databufs(ip, page, from, to); |
389 | error = generic_commit_write(file, page, from, to); | 389 | error = generic_commit_write(file, page, from, to); |
390 | if (error) | 390 | if (error) |
391 | goto fail; | 391 | goto fail; |