]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: use swap macro in xfs_dir2_leafn_rebalance
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 5 Oct 2018 02:36:09 +0000 (21:36 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 5 Oct 2018 02:36:09 +0000 (21:36 -0500)
commit7ef369e27158b491c11e65e3cea36e91c0cb9cd7
treea1bf9085aeaf1899750ed080cca8db2eb953b5dc
parent50c8d19173b2bd4df68f692854beb62db4052dcf
xfs: use swap macro in xfs_dir2_leafn_rebalance

Source kernel commit: e4e542a683c16945533d700339a0aec261d39f34

Make use of the swap macro and remove unnecessary variable *tmp*. This
makes the code easier to read and maintain. Also, slightly refactor some
code.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_dir2_node.c