]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xfs: make xfs_btree_magic more generic
authorEric Sandeen <sandeen@sandeen.net>
Sat, 28 Jan 2017 07:16:38 +0000 (23:16 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 31 Jan 2017 00:32:24 +0000 (16:32 -0800)
commitaf7d20fd83d9e2b3111a847e4220bf943e2d531c
tree2ba9e759f4b5d236de8227b5761c20fcff4c2496
parentf88ae46b09e93ef07ac9efaf85df62adb5ba58e6
xfs: make xfs_btree_magic more generic

Right now the xfs_btree_magic() define takes only a cursor;
change this to take crc and btnum args to make it more generically
useful, and move to a function.

This will allow xfs_btree_init_block_int callers which don't
have a cursor to make use of the xfs_magics array, which will
happen in the next patch.

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_btree.c
fs/xfs/libxfs/xfs_btree.h