repair.h (7e85bc6c873215f19a0b750febfb097d1f3c3292) repair.h (d25522f10cfa342a20867086a516c45c87b0877c)
1/*
2 * Copyright (C) 2018 Oracle. All Rights Reserved.
3 *
4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2

--- 88 unchanged lines hidden (view full) ---

97 struct xfs_repair_find_ag_btree *btree_info,
98 struct xfs_buf *agfl_bp);
99void xfs_repair_force_quotacheck(struct xfs_scrub_context *sc, uint dqtype);
100int xfs_repair_ino_dqattach(struct xfs_scrub_context *sc);
101
102/* Metadata repairers */
103
104int xfs_repair_probe(struct xfs_scrub_context *sc);
1/*
2 * Copyright (C) 2018 Oracle. All Rights Reserved.
3 *
4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2

--- 88 unchanged lines hidden (view full) ---

97 struct xfs_repair_find_ag_btree *btree_info,
98 struct xfs_buf *agfl_bp);
99void xfs_repair_force_quotacheck(struct xfs_scrub_context *sc, uint dqtype);
100int xfs_repair_ino_dqattach(struct xfs_scrub_context *sc);
101
102/* Metadata repairers */
103
104int xfs_repair_probe(struct xfs_scrub_context *sc);
105int xfs_repair_superblock(struct xfs_scrub_context *sc);
105
106#else
107
108static inline int xfs_repair_attempt(
109 struct xfs_inode *ip,
110 struct xfs_scrub_context *sc,
111 bool *fixed)
112{

--- 6 unchanged lines hidden (view full) ---

119xfs_repair_calc_ag_resblks(
120 struct xfs_scrub_context *sc)
121{
122 ASSERT(!(sc->sm->sm_flags & XFS_SCRUB_IFLAG_REPAIR));
123 return 0;
124}
125
126#define xfs_repair_probe xfs_repair_notsupported
106
107#else
108
109static inline int xfs_repair_attempt(
110 struct xfs_inode *ip,
111 struct xfs_scrub_context *sc,
112 bool *fixed)
113{

--- 6 unchanged lines hidden (view full) ---

120xfs_repair_calc_ag_resblks(
121 struct xfs_scrub_context *sc)
122{
123 ASSERT(!(sc->sm->sm_flags & XFS_SCRUB_IFLAG_REPAIR));
124 return 0;
125}
126
127#define xfs_repair_probe xfs_repair_notsupported
128#define xfs_repair_superblock xfs_repair_notsupported
127
128#endif /* CONFIG_XFS_ONLINE_REPAIR */
129
130#endif /* __XFS_SCRUB_REPAIR_H__ */
129
130#endif /* CONFIG_XFS_ONLINE_REPAIR */
131
132#endif /* __XFS_SCRUB_REPAIR_H__ */