nilfs2: simplify nilfs_sufile_get_ncleansegs function
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Thu, 12 Nov 2009 23:45:32 +0000 (08:45 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 20 Nov 2009 01:05:49 +0000 (10:05 +0900)
commitef7d4757a5b7b07a3a0d30d3ba6b587e574b28b9
tree5f1f1cad0c9bb755cd332017f66fe502d1286a94
parentaa474a220180d997caafcee372770d6ed6bf798a
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>
fs/nilfs2/sufile.c
fs/nilfs2/sufile.h
fs/nilfs2/the_nilfs.c