]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: return the hash value of a leaf1 directory block
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 31 Jul 2017 20:08:11 +0000 (15:08 -0500)
committerEric Sandeen <sandeen@redhat.com>
Mon, 31 Jul 2017 20:08:11 +0000 (15:08 -0500)
commit94ffb80aaef15a4ae1c9082b7342dade3a7147df
tree12c51240a25f96c3a138d1257433ec58be940554
parentb5f6747cf5624a94bbcac11970fcfd4c73a46e8b
xfs: return the hash value of a leaf1 directory block

Source kernel commit: 8e8877e6edf2b593fe488b6efa8b3b7cfba96738

Modify the existing dir leafn lasthash function to enable us to
calculate the highest hash value of a leaf1 block.  This will be used by
the directory scrubbing code to check the sanity of hashes in leaf1
directory blocks.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_da_btree.c
libxfs/xfs_dir2_node.c
libxfs/xfs_dir2_priv.h