diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-07-16 23:52:40 +0900 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-07-23 10:02:13 +0900 |
commit | 1d5385b9f30ae43209459db424416a3e1d8f2bde (patch) | |
tree | 202a19586853da9ec598645b5d289d4a0164b232 /fs/nilfs2/btree.h | |
parent | cfa913a5077f7619869b2b4d1bf23ccb4f8b3d7b (diff) | |
download | blackbird-op-linux-1d5385b9f30ae43209459db424416a3e1d8f2bde.tar.gz blackbird-op-linux-1d5385b9f30ae43209459db424416a3e1d8f2bde.zip |
nilfs2: verify btree node after reading
This inserts sanity checks soon after read btree node from disk. This
allows early detection of broken btree nodes, and helps to narrow down
problems due to file system corruption.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/btree.h')
-rw-r--r-- | fs/nilfs2/btree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nilfs2/btree.h b/fs/nilfs2/btree.h index 43c8c5b541fd..980e1e8ec53a 100644 --- a/fs/nilfs2/btree.h +++ b/fs/nilfs2/btree.h @@ -80,4 +80,6 @@ int nilfs_btree_convert_and_insert(struct nilfs_bmap *, __u64, __u64, const __u64 *, const __u64 *, int); void nilfs_btree_init_gc(struct nilfs_bmap *); +int nilfs_btree_broken_node_block(struct buffer_head *bh); + #endif /* _NILFS_BTREE_H */ |