mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
1c02d502c2
commit
ebcbef3a61
9 changed files with 26 additions and 20 deletions
|
@ -55,6 +55,7 @@ extern xfs_extlen_t xfs_refcountbt_max_size(struct xfs_mount *mp,
|
|||
xfs_agblock_t agblocks);
|
||||
|
||||
extern int xfs_refcountbt_calc_reserves(struct xfs_mount *mp,
|
||||
xfs_agnumber_t agno, xfs_extlen_t *ask, xfs_extlen_t *used);
|
||||
struct xfs_trans *tp, xfs_agnumber_t agno, xfs_extlen_t *ask,
|
||||
xfs_extlen_t *used);
|
||||
|
||||
#endif /* __XFS_REFCOUNT_BTREE_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue