]> git.baikalelectronics.ru Git - kernel.git/commit
xfs_attr_leaf: use swap macro in xfs_attr3_leaf_rebalance
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 12 Jul 2018 05:26:38 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 17 Jul 2018 21:25:57 +0000 (14:25 -0700)
commita81e8e5bd5346f81b56498eb4a5f42e71a5fde5b
treefe8d62d9d14fe01e7c327b2802c517f277c2ab1d
parent6b1934e81551fa28c399913ca2bbea5f0c41f927
xfs_attr_leaf: use swap macro in xfs_attr3_leaf_rebalance

Make use of the swap macro and remove some unnecessary variables.
This makes the code easier to read and maintain. Also, reduces the
stack usage.

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_attr_leaf.c