diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-11-18 04:23:34 -0500 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-11-19 20:05:51 -0500 |
commit | 071ec54dd730307ee0e703a105872b9a1c6fd2aa (patch) | |
tree | fb6629e471adf24d432487e0641549fd38d20ef3 /fs/nilfs2/sufile.h | |
parent | 61a189e9c62359cd12b2aa3bd6ab9cffa6cf2745 (diff) |
nilfs2: move routine to set segment usage into sufile
This adds nilfs_sufile_set_segment_usage() function in sufile to
replace direct access to the sufile metadata in log writer code.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/sufile.h')
-rw-r--r-- | fs/nilfs2/sufile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nilfs2/sufile.h b/fs/nilfs2/sufile.h index 4146a652aed1..e1186bf3b964 100644 --- a/fs/nilfs2/sufile.h +++ b/fs/nilfs2/sufile.h | |||
@@ -43,6 +43,8 @@ int nilfs_sufile_get_segment_usage(struct inode *, __u64, | |||
43 | void nilfs_sufile_put_segment_usage(struct inode *, __u64, | 43 | void nilfs_sufile_put_segment_usage(struct inode *, __u64, |
44 | struct buffer_head *); | 44 | struct buffer_head *); |
45 | int nilfs_sufile_mark_dirty(struct inode *sufile, __u64 segnum); | 45 | int nilfs_sufile_mark_dirty(struct inode *sufile, __u64 segnum); |
46 | int nilfs_sufile_set_segment_usage(struct inode *sufile, __u64 segnum, | ||
47 | unsigned long nblocks, time_t modtime); | ||
46 | int nilfs_sufile_get_stat(struct inode *, struct nilfs_sustat *); | 48 | int nilfs_sufile_get_stat(struct inode *, struct nilfs_sustat *); |
47 | ssize_t nilfs_sufile_get_suinfo(struct inode *, __u64, void *, unsigned, | 49 | ssize_t nilfs_sufile_get_suinfo(struct inode *, __u64, void *, unsigned, |
48 | size_t); | 50 | size_t); |