]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: glean crc status from mp not flags in xfs_btree_init_block_int
authorEric Sandeen <sandeen@sandeen.net>
Tue, 4 Apr 2017 20:37:32 +0000 (15:37 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 4 Apr 2017 20:37:32 +0000 (15:37 -0500)
commitf4241a08c6843845db5b1ab710b1eca6a27ece5c
tree04e16b1b0337c44276ebcba9ccc86c899fb068ac
parent25babb5524cf4dd4624045129b127b95add08255
xfs: glean crc status from mp not flags in xfs_btree_init_block_int

Source kernel commit: f88ae46b09e93ef07ac9efaf85df62adb5ba58e6

xfs_btree_init_block_int() can determine whether crcs are
in effect without the passed-in XFS_BTREE_CRC_BLOCKS flag;
the mp argument allows us to determine this from the
superblock.  Remove the flag from callers, and use
xfs_sb_version_hascrc(&mp->m_sb) internally instead.

This removes one difference between the if & else cases
in the callers.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c
libxfs/xfs_bmap_btree.c
libxfs/xfs_btree.c
mkfs/xfs_mkfs.c
repair/phase5.c