diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-11-12 18:45:32 -0500 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-11-19 20:05:49 -0500 |
commit | ef7d4757a5b7b07a3a0d30d3ba6b587e574b28b9 (patch) | |
tree | 5f1f1cad0c9bb755cd332017f66fe502d1286a94 /fs/nilfs2/sufile.h | |
parent | aa474a220180d997caafcee372770d6ed6bf798a (diff) |
nilfs2: simplify nilfs_sufile_get_ncleansegs function
Previously, this function took an status code to return possible error
codes. The ("nilfs2: add local variable to cache the number of clean
segments") patch removed the possibility to return errors.
So, this simplifies the function definition to make it directly return
the number of clean segments.
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nilfs2/sufile.h b/fs/nilfs2/sufile.h index b303a80ac3b1..c339ad5b5326 100644 --- a/fs/nilfs2/sufile.h +++ b/fs/nilfs2/sufile.h | |||
@@ -34,6 +34,8 @@ static inline unsigned long nilfs_sufile_get_nsegments(struct inode *sufile) | |||
34 | return NILFS_MDT(sufile)->mi_nilfs->ns_nsegments; | 34 | return NILFS_MDT(sufile)->mi_nilfs->ns_nsegments; |
35 | } | 35 | } |
36 | 36 | ||
37 | unsigned long nilfs_sufile_get_ncleansegs(struct inode *sufile); | ||
38 | |||
37 | int nilfs_sufile_alloc(struct inode *, __u64 *); | 39 | int nilfs_sufile_alloc(struct inode *, __u64 *); |
38 | int nilfs_sufile_get_segment_usage(struct inode *, __u64, | 40 | int nilfs_sufile_get_segment_usage(struct inode *, __u64, |
39 | struct nilfs_segment_usage **, | 41 | struct nilfs_segment_usage **, |
@@ -41,7 +43,6 @@ int nilfs_sufile_get_segment_usage(struct inode *, __u64, | |||
41 | void nilfs_sufile_put_segment_usage(struct inode *, __u64, | 43 | void nilfs_sufile_put_segment_usage(struct inode *, __u64, |
42 | struct buffer_head *); | 44 | struct buffer_head *); |
43 | int nilfs_sufile_get_stat(struct inode *, struct nilfs_sustat *); | 45 | int nilfs_sufile_get_stat(struct inode *, struct nilfs_sustat *); |
44 | int nilfs_sufile_get_ncleansegs(struct inode *, unsigned long *); | ||
45 | ssize_t nilfs_sufile_get_suinfo(struct inode *, __u64, void *, unsigned, | 46 | ssize_t nilfs_sufile_get_suinfo(struct inode *, __u64, void *, unsigned, |
46 | size_t); | 47 | size_t); |
47 | 48 | ||