]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: glean crc status from mp not flags in xfs_btree_init_block_int
authorEric Sandeen <sandeen@sandeen.net>
Sat, 28 Jan 2017 07:16:37 +0000 (23:16 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 31 Jan 2017 00:32:24 +0000 (16:32 -0800)
commit9ecf2c150223a0043f5aa70c46822172c59a3ec2
tree3760a0ed2c9020e6417c36636c49d1082586e945
parentaf3594dc652d27a1be9786fb22f7c0db391f6673
xfs: glean crc status from mp not flags in xfs_btree_init_block_int

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>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap_btree.c
fs/xfs/libxfs/xfs_btree.c
fs/xfs/xfs_fsops.c