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/page.h | |
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/page.h')
-rw-r--r-- | fs/gfs2/page.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/page.h b/fs/gfs2/page.h index 7ad8c99ee0ef..346e296420c6 100644 --- a/fs/gfs2/page.h +++ b/fs/gfs2/page.h @@ -16,8 +16,8 @@ void gfs2_page_sync(struct gfs2_glock *gl, int flags); int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, uint64_t block, void *private); -int gfs2_truncator_page(struct gfs2_inode *ip, uint64_t size); -void gfs2_page_add_databufs(struct gfs2_sbd *sdp, struct page *page, +int gfs2_block_truncate_page(struct address_space *mapping); +void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page, unsigned int from, unsigned int to); #endif /* __PAGE_DOT_H__ */ |