]> git.ipfire.org Git - people/ms/linux.git/commit - fs/xfs/scrub/agheader.c
xfs: superblock scrub should use short-lived buffers
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 14 May 2018 13:34:31 +0000 (06:34 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 May 2018 00:57:05 +0000 (17:57 -0700)
commit689e11c84b15866619e7582486acacaf79d7e3e2
tree9d27a9b8ed45ea0603bd7f7bd205d2d4855d178c
parent8389f3ffa22a119b37dc7c2217cd2862bb2ed9da
xfs: superblock scrub should use short-lived buffers

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>
fs/xfs/libxfs/xfs_sb.c
fs/xfs/libxfs/xfs_sb.h
fs/xfs/libxfs/xfs_shared.h
fs/xfs/scrub/agheader.c