]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: superblock scrub should use short-lived buffers
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 28 Jun 2018 20:11:56 +0000 (15:11 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 28 Jun 2018 20:11:56 +0000 (15:11 -0500)
commit17d741a856e72330d7b1cf923b7e94d496a647b0
treeb7376db384a3d58677864c2abe63ca809e250072
parentcc5af22ab6775519a524b3b688962a3f8165e618
xfs: superblock scrub should use short-lived buffers

Source kernel commit: 689e11c84b15866619e7582486acacaf79d7e3e2

Secondary superblocks are rarely used, so create a helper to read a
given non-primary AG's superblock and ensure that it won't stick around
hogging memory.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_sb.c
libxfs/xfs_sb.h
libxfs/xfs_shared.h