]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: make the btree ag cursor private union anonymous
authorDave Chinner <dchinner@redhat.com>
Fri, 1 May 2020 21:37:09 +0000 (17:37 -0400)
committerEric Sandeen <sandeen@redhat.com>
Fri, 1 May 2020 21:37:09 +0000 (17:37 -0400)
commit63789af3fb074054fd0026d8c37292efd3ec6c07
tree096dec6b76118f23b3bbcb11427afa0baa241e92
parentead943ee9c7cad0ae7d1028276d3e0314bd7272f
xfs: make the btree ag cursor private union anonymous

Source kernel commit: c4aa10d041968f55f00fe8ca768b6f45f4066a69

This is much less widely used than the bc_private union was, so this
is done as a single patch. The named union xfs_btree_cur_private
goes away and is embedded into the struct xfs_btree_cur_ag as an
anonymous union, and the code is modified via this script:

$ sed -i 's/priv\.\([abt|refc]\)/\1/g' fs/xfs/*[ch] fs/xfs/*/*[ch]

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_alloc.c
libxfs/xfs_alloc_btree.c
libxfs/xfs_btree.h
libxfs/xfs_refcount.c
libxfs/xfs_refcount_btree.c