Commit d5aa62de authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: disable online repair quota helpers when quota not enabled

Don't compile the quota helper functions if quota isn't being built into
the XFS module.
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent 9099cd38
...@@ -673,6 +673,7 @@ xrep_find_ag_btree_roots( ...@@ -673,6 +673,7 @@ xrep_find_ag_btree_roots(
return error; return error;
} }
#ifdef CONFIG_XFS_QUOTA
/* Force a quotacheck the next time we mount. */ /* Force a quotacheck the next time we mount. */
void void
xrep_force_quotacheck( xrep_force_quotacheck(
...@@ -734,6 +735,7 @@ xrep_ino_dqattach( ...@@ -734,6 +735,7 @@ xrep_ino_dqattach(
return error; return error;
} }
#endif /* CONFIG_XFS_QUOTA */
/* /*
* Initialize all the btree cursors for an AG repair except for the btree that * Initialize all the btree cursors for an AG repair except for the btree that
......
...@@ -57,8 +57,15 @@ struct xrep_find_ag_btree { ...@@ -57,8 +57,15 @@ struct xrep_find_ag_btree {
int xrep_find_ag_btree_roots(struct xfs_scrub *sc, struct xfs_buf *agf_bp, int xrep_find_ag_btree_roots(struct xfs_scrub *sc, struct xfs_buf *agf_bp,
struct xrep_find_ag_btree *btree_info, struct xfs_buf *agfl_bp); struct xrep_find_ag_btree *btree_info, struct xfs_buf *agfl_bp);
#ifdef CONFIG_XFS_QUOTA
void xrep_force_quotacheck(struct xfs_scrub *sc, xfs_dqtype_t type); void xrep_force_quotacheck(struct xfs_scrub *sc, xfs_dqtype_t type);
int xrep_ino_dqattach(struct xfs_scrub *sc); int xrep_ino_dqattach(struct xfs_scrub *sc);
#else
# define xrep_force_quotacheck(sc, type) ((void)0)
# define xrep_ino_dqattach(sc) (0)
#endif /* CONFIG_XFS_QUOTA */
int xrep_reset_perag_resv(struct xfs_scrub *sc); int xrep_reset_perag_resv(struct xfs_scrub *sc);
/* Repair setup functions */ /* Repair setup functions */
...@@ -87,6 +94,8 @@ int xrep_reinit_pagi(struct xfs_scrub *sc); ...@@ -87,6 +94,8 @@ int xrep_reinit_pagi(struct xfs_scrub *sc);
#else #else
#define xrep_ino_dqattach(sc) (0)
static inline int static inline int
xrep_attempt( xrep_attempt(
struct xfs_scrub *sc, struct xfs_scrub *sc,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment