]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedf5e621bc04564e936428c93b12db14d8e3d1a7
treed9b30678acfa6dc5e99944a4e7dc5fca6f09f2a9
parent7d635e1fd02b844fe12db22847a07bc4c9cd601d
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