diff options
Diffstat (limited to 'fs/xfs/scrub/common.h')
-rw-r--r-- | fs/xfs/scrub/common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/scrub/common.h b/fs/xfs/scrub/common.h index 49dcaa43d0ed..9cea43a4fd6c 100644 --- a/fs/xfs/scrub/common.h +++ b/fs/xfs/scrub/common.h @@ -102,9 +102,17 @@ xchk_setup_rtsummary(struct xfs_scrub *sc) return -ENOENT; } #endif + #ifdef CONFIG_XFS_QUOTA +void xchk_try_dqattach(struct xfs_scrub *sc); int xchk_setup_quota(struct xfs_scrub *sc); #else +static inline void +xchk_try_dqattach(struct xfs_scrub *sc) +{ + ASSERT(sc->ip != NULL); +} + static inline int xchk_setup_quota(struct xfs_scrub *sc) { |