xfs: use swap() to make dabtree code cleaner
authorYang Guang <yang.guang5@zte.com.cn>
Mon, 8 Nov 2021 19:23:25 +0000 (11:23 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 8 Nov 2021 19:23:25 +0000 (11:23 -0800)
commit5b068aadf62da006891383f6b23e47bc3ad49995
tree31d64e70a2c2437b9ebc79de60f62a8ce81b840a
parent2a09b575074ff3ed23907b6f6f3da87af41f592b
xfs: use swap() to make dabtree code cleaner

Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid
opencoding it.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Yang Guang <yang.guang5@zte.com.cn>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_da_btree.c