]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: add ioctl which limits range of segment to be allocated
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Wed, 4 May 2011 16:23:57 +0000 (01:23 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 10 May 2011 13:21:45 +0000 (22:21 +0900)
commite6fd7d65a55c0a434202ee2b1e251446c6f64747
treecd672bb647ff22c711d93437fc53821852f27eba
parent83ac3ca6ed3efb362843a0762c2fba4e4e373462
nilfs2: add ioctl which limits range of segment to be allocated

This adds a new ioctl command which limits range of segment to be
allocated.  This is intended to gather data whithin a range of the
partition before shrinking the filesystem, or to control new log
location for some purpose.

If a range is specified by the ioctl, segment allocator of nilfs tries
to allocate new segments from the range unless no free segments are
available there.

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