Files
android_kernel_xiaomi_sm8450/fs/xfs
Eric Sandeen b6f41e4482 xfs: remove boilerplate around xfs_btree_init_block
Now that xfs_btree_init_block_int is able to determine crc
status from the passed-in mp, we can determine the proper
magic as well if we are given a btree number, rather than
an explicit magic value.

Change xfs_btree_init_block[_int] callers to pass in the
btree number, and let xfs_btree_init_block_int use the
xfs_magics array via the xfs_btree_magic macro to determine
which magic value is needed.  This makes all of the
if (crc) / else stanzas identical, and the if/else can be
removed, leading to a single, common init_block call.

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>
2017-01-30 16:32:24 -08:00
..
2016-04-06 09:47:01 +10:00
2016-04-06 09:47:01 +10:00
2016-10-04 18:06:40 -07:00
2013-05-07 18:45:36 -05:00
2012-11-19 20:11:24 -06:00
2016-11-30 14:37:15 +11:00
2016-10-04 11:05:44 -07:00
2017-01-23 10:55:07 -08:00
2016-06-01 17:38:15 +10:00
2013-05-07 18:45:36 -05:00
2013-05-07 18:45:36 -05:00