xfs: pass transaction lock while setting up agresv on cyclic metadata
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 30 Jul 2018 05:37:08 +0000 (22:37 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 30 Jul 2018 05:37:08 +0000 (22:37 -0700)
commitebcbef3a61a6081ffe20b0b684f18ebbf23f1dfb
treed9b30678acfa6dc5e99944a4e7dc5fca6f09f2a9
parent1c02d502c20809a2a5f71ec16a930a61ed779b81
xfs: pass transaction lock while setting up agresv on cyclic metadata

Pass a tranaction pointer through to all helpers that calculate the
per-AG block reservation.  Online repair will use this to reinitialize
per-ag reservations while it still holds all the AG headers locked to
the repair transaction.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/libxfs/xfs_ag_resv.c
fs/xfs/libxfs/xfs_ag_resv.h
fs/xfs/libxfs/xfs_ialloc_btree.c
fs/xfs/libxfs/xfs_ialloc_btree.h
fs/xfs/libxfs/xfs_refcount_btree.c
fs/xfs/libxfs/xfs_refcount_btree.h
fs/xfs/libxfs/xfs_rmap_btree.c
fs/xfs/libxfs/xfs_rmap_btree.h
fs/xfs/xfs_fsops.c