]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add helpers to deal with transaction allocation and rolling
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 May 2018 05:18:08 +0000 (22:18 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 May 2018 15:03:14 +0000 (08:03 -0700)
commit51d8ffc71b5dab07dc5fd297e5f02e0d2e50955d
tree4d0b9ccafc39c5a211520968bd5a5858f7b0e896
parentc1df1c30ac85c69df1110264b786f3daab2c9248
xfs: add helpers to deal with transaction allocation and rolling

For repairs, we need to reserve at least as many blocks as we think
we're going to need to rebuild the data structure, and we're going to
need some helpers to roll transactions while maintaining locks on the AG
headers so that other threads cannot wander into the middle of a repair.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
fs/xfs/scrub/bmap.c
fs/xfs/scrub/common.c
fs/xfs/scrub/common.h
fs/xfs/scrub/inode.c
fs/xfs/scrub/repair.c
fs/xfs/scrub/repair.h