]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add CRC checking to dir2 leaf blocks
authorDave Chinner <dchinner@redhat.com>
Thu, 11 Apr 2013 21:30:21 +0000 (07:30 +1000)
committerBen Myers <bpm@sgi.com>
Sat, 27 Apr 2013 17:19:53 +0000 (12:19 -0500)
commit60ecf6592e4387b0e9c914c94f5aa3c5de8f39b1
treec4f3ca2bfdd25b09706ad3d4ccd4f45fff6710a9
parent5f249ba5ef94f7f155a28672feae55aeea2ca4df
xfs: add CRC checking to dir2 leaf blocks

This addition follows the same pattern as the dir2 block CRCs.
Seeing as both LEAF1 and LEAFN types need to changed at the same
time, this is a pretty large amount of change. leaf block headers
need to be abstracted away from the on-disk structures (struct
xfs_dir3_icleaf_hdr), as do the base leaf entry locations.

This header abstract allows the in-core header and leaf entry
location to be passed around instead of the leaf block itself. This
saves a lot of converting individual variables from on-disk format
to host format where they are used, so there's a good chance that
the compiler will be able to produce much more optimal code as it's
not having to byteswap variables all over the place.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_da_btree.c
fs/xfs/xfs_da_btree.h
fs/xfs/xfs_dir2_block.c
fs/xfs/xfs_dir2_format.h
fs/xfs/xfs_dir2_leaf.c
fs/xfs/xfs_dir2_node.c
fs/xfs/xfs_dir2_priv.h