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>
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user