]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: use swap macro in xfs_dir2_leafn_rebalance
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 17 Jul 2018 21:25:01 +0000 (14:25 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 17 Jul 2018 21:25:57 +0000 (14:25 -0700)
commitada061a3a66b183e7755ee5fcbaa91221d5ae7d5
tree836a607674664bdf74ca844332319964bcd920fb
parent18753a89668338cc2819e0540643ebcd39383e67
xfs: use swap macro in xfs_dir2_leafn_rebalance

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>
fs/xfs/libxfs/xfs_dir2_node.c