]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57857912c76914c746d3300dfb8229f9ccc7f068
tree9d27a9b8ed45ea0603bd7f7bd205d2d4855d178c
parent5e26270130655b891d863966a5b8349c723e170f
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