aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/nilfs.h
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2011-03-04 10:19:32 -0500
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2011-03-08 00:58:31 -0500
commitbe667377a8b8cd73e1b923f33fb5be4034aa4bfa (patch)
tree8baee2f9155728331eeade85ec93547402f4e606 /fs/nilfs2/nilfs.h
parentae191838b0251d73b9d0a7254c6938406f5f6320 (diff)
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>
Diffstat (limited to 'fs/nilfs2/nilfs.h')
-rw-r--r--fs/nilfs2/nilfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nilfs2/nilfs.h b/fs/nilfs2/nilfs.h
index 45b1fd1d0245..03ba4d88083f 100644
--- a/fs/nilfs2/nilfs.h
+++ b/fs/nilfs2/nilfs.h
@@ -251,6 +251,8 @@ int nilfs_ioctl_prepare_clean_segments(struct the_nilfs *, struct nilfs_argv *,
251 void **); 251 void **);
252 252
253/* inode.c */ 253/* inode.c */
254void nilfs_inode_add_blocks(struct inode *inode, int n);
255void nilfs_inode_sub_blocks(struct inode *inode, int n);
254extern struct inode *nilfs_new_inode(struct inode *, int); 256extern struct inode *nilfs_new_inode(struct inode *, int);
255extern void nilfs_free_inode(struct inode *); 257extern void nilfs_free_inode(struct inode *);
256extern int nilfs_get_block(struct inode *, sector_t, struct buffer_head *, int); 258extern int nilfs_get_block(struct inode *, sector_t, struct buffer_head *, int);