diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-14 06:34:31 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-15 17:57:05 -0700 |
commit | 689e11c84b15866619e7582486acacaf79d7e3e2 (patch) | |
tree | 9d27a9b8ed45ea0603bd7f7bd205d2d4855d178c /fs/xfs/libxfs/xfs_sb.h | |
parent | 8389f3ffa22a119b37dc7c2217cd2862bb2ed9da (diff) | |
download | linux-689e11c84b15866619e7582486acacaf79d7e3e2.tar.gz linux-689e11c84b15866619e7582486acacaf79d7e3e2.tar.bz2 linux-689e11c84b15866619e7582486acacaf79d7e3e2.zip |
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_sb.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_sb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_sb.h b/fs/xfs/libxfs/xfs_sb.h index 63dcd2a1a657..5166d78b2c34 100644 --- a/fs/xfs/libxfs/xfs_sb.h +++ b/fs/xfs/libxfs/xfs_sb.h @@ -37,5 +37,8 @@ extern void xfs_sb_quota_from_disk(struct xfs_sb *sbp); #define XFS_FS_GEOM_MAX_STRUCT_VER (4) extern int xfs_fs_geometry(struct xfs_sb *sbp, struct xfs_fsop_geom *geo, int struct_version); +extern int xfs_sb_read_secondary(struct xfs_mount *mp, + struct xfs_trans *tp, xfs_agnumber_t agno, + struct xfs_buf **bpp); #endif /* __XFS_SB_H__ */ |