]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
nilfs2: record used amount of each checkpoint in checkpoint list
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 4 Mar 2011 15:19:32 +0000 (00:19 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 8 Mar 2011 05:58:31 +0000 (14:58 +0900)
commitbe667377a8b8cd73e1b923f33fb5be4034aa4bfa
tree8baee2f9155728331eeade85ec93547402f4e606
parentae191838b0251d73b9d0a7254c6938406f5f6320
nilfs2: record used amount of each checkpoint in checkpoint list

This records the number of used blocks per checkpoint in each
checkpoint entry of cpfile.  Even though userland tools can get the
block count via nilfs_get_cpinfo ioctl, it was not updated by the
nilfs2 kernel code.  This fixes the issue and makes it available for
userland tools to calculate used amount per checkpoint.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Cc: Jiro SEKIBA <jir@unicus.jp>
fs/nilfs2/bmap.c
fs/nilfs2/bmap.h
fs/nilfs2/btree.c
fs/nilfs2/direct.c
fs/nilfs2/inode.c
fs/nilfs2/nilfs.h
include/linux/nilfs2_fs.h