summaryrefslogtreecommitdiffstats
path: root/fs/dax.c
diff options
context:
space:
mode:
authorEric Sandeen2017-01-28 08:16:39 +0100
committerDarrick J. Wong2017-01-31 01:32:24 +0100
commitb6f41e448277ff080fea734b93121e6cd7513f0c (patch)
tree836dd90f7b2d3d412eb5782e1b1fc463e9d9fd4c /fs/dax.c
parentxfs: make xfs_btree_magic more generic (diff)
downloadkernel-qcow2-linux-b6f41e448277ff080fea734b93121e6cd7513f0c.tar.gz
kernel-qcow2-linux-b6f41e448277ff080fea734b93121e6cd7513f0c.tar.xz
kernel-qcow2-linux-b6f41e448277ff080fea734b93121e6cd7513f0c.zip
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>
Diffstat (limited to 'fs/dax.c')
0 files changed, 0 insertions, 0 deletions