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/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); | |||
16 | 16 | ||
17 | int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, | 17 | int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, |
18 | uint64_t block, void *private); | 18 | uint64_t block, void *private); |
19 | int gfs2_truncator_page(struct gfs2_inode *ip, uint64_t size); | 19 | int gfs2_block_truncate_page(struct address_space *mapping); |
20 | void gfs2_page_add_databufs(struct gfs2_sbd *sdp, struct page *page, | 20 | void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page, |
21 | unsigned int from, unsigned int to); | 21 | unsigned int from, unsigned int to); |
22 | 22 | ||
23 | #endif /* __PAGE_DOT_H__ */ | 23 | #endif /* __PAGE_DOT_H__ */ |