]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: make the btree ag cursor private union anonymous
authorDave Chinner <dchinner@redhat.com>
Wed, 11 Mar 2020 00:57:51 +0000 (17:57 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 13 Mar 2020 17:37:15 +0000 (10:37 -0700)
commit4fc903f31eaf56b9f7cb3c5ae094a351fe0631fb
tree95c8b2e353fc6ce34799652109068db21265262d
parent9bb8f84e36bfa5a1392adcb0eebe73436fd9b9ad
xfs: make the btree ag cursor private union anonymous

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>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc_btree.c
fs/xfs/libxfs/xfs_btree.h
fs/xfs/libxfs/xfs_refcount.c
fs/xfs/libxfs/xfs_refcount_btree.c