summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_sb.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-05-14 16:34:31 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2018-05-16 03:57:05 +0300
commit689e11c84b15866619e7582486acacaf79d7e3e2 (patch)
tree9d27a9b8ed45ea0603bd7f7bd205d2d4855d178c /fs/xfs/libxfs/xfs_sb.h
parent8389f3ffa22a119b37dc7c2217cd2862bb2ed9da (diff)
downloadlinux-689e11c84b15866619e7582486acacaf79d7e3e2.tar.xz
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.h3
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__ */