]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_attr_leaf: use swap macro in xfs_attr3_leaf_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)
commit50c8d19173b2bd4df68f692854beb62db4052dcf
tree8585dea644f9899f30d863fef10c4c2f4ce285cd
parenta6ad7ea889f83e499876b5f08bd92bff206c0f2d
xfs_attr_leaf: use swap macro in xfs_attr3_leaf_rebalance

Source kernel commit: 1d5bebbafc73d82e5af003cdd2bf8ee5741cd1df

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_priv.h
libxfs/xfs_attr_leaf.c