nilfs2: add truncation routine of segment usage file
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Wed, 4 May 2011 16:23:58 +0000 (01:23 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 10 May 2011 13:21:45 +0000 (22:21 +0900)
commit78eb64c2479e0f408b725c3c8e1cdf557857af48
tree0aaee16c95e7a1a6ca4b1c7136bebf9dcea48a1b
parentcfb0a4bfd8736418cbe5cbc115cabc84b527111e
nilfs2: add truncation routine of segment usage file

When shrinking the filesystem, segments to be truncated must be test
if they are busy or not, and unneeded sufile block should be deleted.
This adds routines for the truncation.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/sufile.c