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

xfs: shorten xfs_repair_ prefix to xrep_

Shorten all the metadata repair xfs_repair_* symbols to xrep_.
Whitespace damage will be fixed by a subsequent patch.  There are no
functional changes.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
parent c517b3aa
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
/* Repair the superblock. */ /* Repair the superblock. */
int int
xfs_repair_superblock( xrep_superblock(
struct xfs_scrub_context *sc) struct xfs_scrub_context *sc)
{ {
struct xfs_mount *mp = sc->mp; struct xfs_mount *mp = sc->mp;
......
...@@ -604,7 +604,7 @@ xchk_setup_fs( ...@@ -604,7 +604,7 @@ xchk_setup_fs(
{ {
uint resblks; uint resblks;
resblks = xfs_repair_calc_ag_resblks(sc); resblks = xrep_calc_ag_resblks(sc);
return xchk_trans_alloc(sc, resblks); return xchk_trans_alloc(sc, resblks);
} }
......
This diff is collapsed.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#ifndef __XFS_SCRUB_REPAIR_H__ #ifndef __XFS_SCRUB_REPAIR_H__
#define __XFS_SCRUB_REPAIR_H__ #define __XFS_SCRUB_REPAIR_H__
static inline int xfs_repair_notsupported(struct xfs_scrub_context *sc) static inline int xrep_notsupported(struct xfs_scrub_context *sc)
{ {
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
...@@ -15,55 +15,55 @@ static inline int xfs_repair_notsupported(struct xfs_scrub_context *sc) ...@@ -15,55 +15,55 @@ static inline int xfs_repair_notsupported(struct xfs_scrub_context *sc)
/* Repair helpers */ /* Repair helpers */
int xfs_repair_attempt(struct xfs_inode *ip, struct xfs_scrub_context *sc, int xrep_attempt(struct xfs_inode *ip, struct xfs_scrub_context *sc,
bool *fixed); bool *fixed);
void xfs_repair_failure(struct xfs_mount *mp); void xrep_failure(struct xfs_mount *mp);
int xfs_repair_roll_ag_trans(struct xfs_scrub_context *sc); int xrep_roll_ag_trans(struct xfs_scrub_context *sc);
bool xfs_repair_ag_has_space(struct xfs_perag *pag, xfs_extlen_t nr_blocks, bool xrep_ag_has_space(struct xfs_perag *pag, xfs_extlen_t nr_blocks,
enum xfs_ag_resv_type type); enum xfs_ag_resv_type type);
xfs_extlen_t xfs_repair_calc_ag_resblks(struct xfs_scrub_context *sc); xfs_extlen_t xrep_calc_ag_resblks(struct xfs_scrub_context *sc);
int xfs_repair_alloc_ag_block(struct xfs_scrub_context *sc, int xrep_alloc_ag_block(struct xfs_scrub_context *sc,
struct xfs_owner_info *oinfo, xfs_fsblock_t *fsbno, struct xfs_owner_info *oinfo, xfs_fsblock_t *fsbno,
enum xfs_ag_resv_type resv); enum xfs_ag_resv_type resv);
int xfs_repair_init_btblock(struct xfs_scrub_context *sc, xfs_fsblock_t fsb, int xrep_init_btblock(struct xfs_scrub_context *sc, xfs_fsblock_t fsb,
struct xfs_buf **bpp, xfs_btnum_t btnum, struct xfs_buf **bpp, xfs_btnum_t btnum,
const struct xfs_buf_ops *ops); const struct xfs_buf_ops *ops);
struct xfs_repair_extent { struct xrep_extent {
struct list_head list; struct list_head list;
xfs_fsblock_t fsbno; xfs_fsblock_t fsbno;
xfs_extlen_t len; xfs_extlen_t len;
}; };
struct xfs_repair_extent_list { struct xrep_extent_list {
struct list_head list; struct list_head list;
}; };
static inline void static inline void
xfs_repair_init_extent_list( xrep_init_extent_list(
struct xfs_repair_extent_list *exlist) struct xrep_extent_list *exlist)
{ {
INIT_LIST_HEAD(&exlist->list); INIT_LIST_HEAD(&exlist->list);
} }
#define for_each_xfs_repair_extent_safe(rbe, n, exlist) \ #define for_each_xrep_extent_safe(rbe, n, exlist) \
list_for_each_entry_safe((rbe), (n), &(exlist)->list, list) list_for_each_entry_safe((rbe), (n), &(exlist)->list, list)
int xfs_repair_collect_btree_extent(struct xfs_scrub_context *sc, int xrep_collect_btree_extent(struct xfs_scrub_context *sc,
struct xfs_repair_extent_list *btlist, xfs_fsblock_t fsbno, struct xrep_extent_list *btlist, xfs_fsblock_t fsbno,
xfs_extlen_t len); xfs_extlen_t len);
void xfs_repair_cancel_btree_extents(struct xfs_scrub_context *sc, void xrep_cancel_btree_extents(struct xfs_scrub_context *sc,
struct xfs_repair_extent_list *btlist); struct xrep_extent_list *btlist);
int xfs_repair_subtract_extents(struct xfs_scrub_context *sc, int xrep_subtract_extents(struct xfs_scrub_context *sc,
struct xfs_repair_extent_list *exlist, struct xrep_extent_list *exlist,
struct xfs_repair_extent_list *sublist); struct xrep_extent_list *sublist);
int xfs_repair_fix_freelist(struct xfs_scrub_context *sc, bool can_shrink); int xrep_fix_freelist(struct xfs_scrub_context *sc, bool can_shrink);
int xfs_repair_invalidate_blocks(struct xfs_scrub_context *sc, int xrep_invalidate_blocks(struct xfs_scrub_context *sc,
struct xfs_repair_extent_list *btlist); struct xrep_extent_list *btlist);
int xfs_repair_reap_btree_extents(struct xfs_scrub_context *sc, int xrep_reap_btree_extents(struct xfs_scrub_context *sc,
struct xfs_repair_extent_list *exlist, struct xrep_extent_list *exlist,
struct xfs_owner_info *oinfo, enum xfs_ag_resv_type type); struct xfs_owner_info *oinfo, enum xfs_ag_resv_type type);
struct xfs_repair_find_ag_btree { struct xrep_find_ag_btree {
/* in: rmap owner of the btree we're looking for */ /* in: rmap owner of the btree we're looking for */
uint64_t rmap_owner; uint64_t rmap_owner;
...@@ -78,21 +78,21 @@ struct xfs_repair_find_ag_btree { ...@@ -78,21 +78,21 @@ struct xfs_repair_find_ag_btree {
unsigned int height; unsigned int height;
}; };
int xfs_repair_find_ag_btree_roots(struct xfs_scrub_context *sc, int xrep_find_ag_btree_roots(struct xfs_scrub_context *sc,
struct xfs_buf *agf_bp, struct xfs_buf *agf_bp,
struct xfs_repair_find_ag_btree *btree_info, struct xrep_find_ag_btree *btree_info,
struct xfs_buf *agfl_bp); struct xfs_buf *agfl_bp);
void xfs_repair_force_quotacheck(struct xfs_scrub_context *sc, uint dqtype); void xrep_force_quotacheck(struct xfs_scrub_context *sc, uint dqtype);
int xfs_repair_ino_dqattach(struct xfs_scrub_context *sc); int xrep_ino_dqattach(struct xfs_scrub_context *sc);
/* Metadata repairers */ /* Metadata repairers */
int xfs_repair_probe(struct xfs_scrub_context *sc); int xrep_probe(struct xfs_scrub_context *sc);
int xfs_repair_superblock(struct xfs_scrub_context *sc); int xrep_superblock(struct xfs_scrub_context *sc);
#else #else
static inline int xfs_repair_attempt( static inline int xrep_attempt(
struct xfs_inode *ip, struct xfs_inode *ip,
struct xfs_scrub_context *sc, struct xfs_scrub_context *sc,
bool *fixed) bool *fixed)
...@@ -100,18 +100,18 @@ static inline int xfs_repair_attempt( ...@@ -100,18 +100,18 @@ static inline int xfs_repair_attempt(
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
static inline void xfs_repair_failure(struct xfs_mount *mp) {} static inline void xrep_failure(struct xfs_mount *mp) {}
static inline xfs_extlen_t static inline xfs_extlen_t
xfs_repair_calc_ag_resblks( xrep_calc_ag_resblks(
struct xfs_scrub_context *sc) struct xfs_scrub_context *sc)
{ {
ASSERT(!(sc->sm->sm_flags & XFS_SCRUB_IFLAG_REPAIR)); ASSERT(!(sc->sm->sm_flags & XFS_SCRUB_IFLAG_REPAIR));
return 0; return 0;
} }
#define xfs_repair_probe xfs_repair_notsupported #define xrep_probe xrep_notsupported
#define xfs_repair_superblock xfs_repair_notsupported #define xrep_superblock xrep_notsupported
#endif /* CONFIG_XFS_ONLINE_REPAIR */ #endif /* CONFIG_XFS_ONLINE_REPAIR */
......
...@@ -202,150 +202,150 @@ static const struct xchk_meta_ops meta_scrub_ops[] = { ...@@ -202,150 +202,150 @@ static const struct xchk_meta_ops meta_scrub_ops[] = {
.type = ST_NONE, .type = ST_NONE,
.setup = xchk_setup_fs, .setup = xchk_setup_fs,
.scrub = xchk_probe, .scrub = xchk_probe,
.repair = xfs_repair_probe, .repair = xrep_probe,
}, },
[XFS_SCRUB_TYPE_SB] = { /* superblock */ [XFS_SCRUB_TYPE_SB] = { /* superblock */
.type = ST_PERAG, .type = ST_PERAG,
.setup = xchk_setup_fs, .setup = xchk_setup_fs,
.scrub = xchk_superblock, .scrub = xchk_superblock,
.repair = xfs_repair_superblock, .repair = xrep_superblock,
}, },
[XFS_SCRUB_TYPE_AGF] = { /* agf */ [XFS_SCRUB_TYPE_AGF] = { /* agf */
.type = ST_PERAG, .type = ST_PERAG,
.setup = xchk_setup_fs, .setup = xchk_setup_fs,
.scrub = xchk_agf, .scrub = xchk_agf,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_AGFL]= { /* agfl */ [XFS_SCRUB_TYPE_AGFL]= { /* agfl */
.type = ST_PERAG, .type = ST_PERAG,
.setup = xchk_setup_fs, .setup = xchk_setup_fs,
.scrub = xchk_agfl, .scrub = xchk_agfl,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_AGI] = { /* agi */ [XFS_SCRUB_TYPE_AGI] = { /* agi */
.type = ST_PERAG, .type = ST_PERAG,
.setup = xchk_setup_fs, .setup = xchk_setup_fs,
.scrub = xchk_agi, .scrub = xchk_agi,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_BNOBT] = { /* bnobt */ [XFS_SCRUB_TYPE_BNOBT] = { /* bnobt */
.type = ST_PERAG, .type = ST_PERAG,
.setup = xchk_setup_ag_allocbt, .setup = xchk_setup_ag_allocbt,
.scrub = xchk_bnobt, .scrub = xchk_bnobt,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_CNTBT] = { /* cntbt */ [XFS_SCRUB_TYPE_CNTBT] = { /* cntbt */
.type = ST_PERAG, .type = ST_PERAG,
.setup = xchk_setup_ag_allocbt, .setup = xchk_setup_ag_allocbt,
.scrub = xchk_cntbt, .scrub = xchk_cntbt,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_INOBT] = { /* inobt */ [XFS_SCRUB_TYPE_INOBT] = { /* inobt */
.type = ST_PERAG, .type = ST_PERAG,
.setup = xchk_setup_ag_iallocbt, .setup = xchk_setup_ag_iallocbt,
.scrub = xchk_inobt, .scrub = xchk_inobt,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_FINOBT] = { /* finobt */ [XFS_SCRUB_TYPE_FINOBT] = { /* finobt */
.type = ST_PERAG, .type = ST_PERAG,
.setup = xchk_setup_ag_iallocbt, .setup = xchk_setup_ag_iallocbt,
.scrub = xchk_finobt, .scrub = xchk_finobt,
.has = xfs_sb_version_hasfinobt, .has = xfs_sb_version_hasfinobt,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_RMAPBT] = { /* rmapbt */ [XFS_SCRUB_TYPE_RMAPBT] = { /* rmapbt */
.type = ST_PERAG, .type = ST_PERAG,
.setup = xchk_setup_ag_rmapbt, .setup = xchk_setup_ag_rmapbt,
.scrub = xchk_rmapbt, .scrub = xchk_rmapbt,
.has = xfs_sb_version_hasrmapbt, .has = xfs_sb_version_hasrmapbt,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_REFCNTBT] = { /* refcountbt */ [XFS_SCRUB_TYPE_REFCNTBT] = { /* refcountbt */
.type = ST_PERAG, .type = ST_PERAG,
.setup = xchk_setup_ag_refcountbt, .setup = xchk_setup_ag_refcountbt,
.scrub = xchk_refcountbt, .scrub = xchk_refcountbt,
.has = xfs_sb_version_hasreflink, .has = xfs_sb_version_hasreflink,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_INODE] = { /* inode record */ [XFS_SCRUB_TYPE_INODE] = { /* inode record */
.type = ST_INODE, .type = ST_INODE,
.setup = xchk_setup_inode, .setup = xchk_setup_inode,
.scrub = xchk_inode, .scrub = xchk_inode,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_BMBTD] = { /* inode data fork */ [XFS_SCRUB_TYPE_BMBTD] = { /* inode data fork */
.type = ST_INODE, .type = ST_INODE,
.setup = xchk_setup_inode_bmap, .setup = xchk_setup_inode_bmap,
.scrub = xchk_bmap_data, .scrub = xchk_bmap_data,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_BMBTA] = { /* inode attr fork */ [XFS_SCRUB_TYPE_BMBTA] = { /* inode attr fork */
.type = ST_INODE, .type = ST_INODE,
.setup = xchk_setup_inode_bmap, .setup = xchk_setup_inode_bmap,
.scrub = xchk_bmap_attr, .scrub = xchk_bmap_attr,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_BMBTC] = { /* inode CoW fork */ [XFS_SCRUB_TYPE_BMBTC] = { /* inode CoW fork */
.type = ST_INODE, .type = ST_INODE,
.setup = xchk_setup_inode_bmap, .setup = xchk_setup_inode_bmap,
.scrub = xchk_bmap_cow, .scrub = xchk_bmap_cow,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_DIR] = { /* directory */ [XFS_SCRUB_TYPE_DIR] = { /* directory */
.type = ST_INODE, .type = ST_INODE,
.setup = xchk_setup_directory, .setup = xchk_setup_directory,
.scrub = xchk_directory, .scrub = xchk_directory,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_XATTR] = { /* extended attributes */ [XFS_SCRUB_TYPE_XATTR] = { /* extended attributes */
.type = ST_INODE, .type = ST_INODE,
.setup = xchk_setup_xattr, .setup = xchk_setup_xattr,
.scrub = xchk_xattr, .scrub = xchk_xattr,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_SYMLINK] = { /* symbolic link */ [XFS_SCRUB_TYPE_SYMLINK] = { /* symbolic link */
.type = ST_INODE, .type = ST_INODE,
.setup = xchk_setup_symlink, .setup = xchk_setup_symlink,
.scrub = xchk_symlink, .scrub = xchk_symlink,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_PARENT] = { /* parent pointers */ [XFS_SCRUB_TYPE_PARENT] = { /* parent pointers */
.type = ST_INODE, .type = ST_INODE,
.setup = xchk_setup_parent, .setup = xchk_setup_parent,
.scrub = xchk_parent, .scrub = xchk_parent,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_RTBITMAP] = { /* realtime bitmap */ [XFS_SCRUB_TYPE_RTBITMAP] = { /* realtime bitmap */
.type = ST_FS, .type = ST_FS,
.setup = xchk_setup_rt, .setup = xchk_setup_rt,
.scrub = xchk_rtbitmap, .scrub = xchk_rtbitmap,
.has = xfs_sb_version_hasrealtime, .has = xfs_sb_version_hasrealtime,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_RTSUM] = { /* realtime summary */ [XFS_SCRUB_TYPE_RTSUM] = { /* realtime summary */
.type = ST_FS, .type = ST_FS,
.setup = xchk_setup_rt, .setup = xchk_setup_rt,
.scrub = xchk_rtsummary, .scrub = xchk_rtsummary,
.has = xfs_sb_version_hasrealtime, .has = xfs_sb_version_hasrealtime,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_UQUOTA] = { /* user quota */ [XFS_SCRUB_TYPE_UQUOTA] = { /* user quota */
.type = ST_FS, .type = ST_FS,
.setup = xchk_setup_quota, .setup = xchk_setup_quota,
.scrub = xchk_quota, .scrub = xchk_quota,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_GQUOTA] = { /* group quota */ [XFS_SCRUB_TYPE_GQUOTA] = { /* group quota */
.type = ST_FS, .type = ST_FS,
.setup = xchk_setup_quota, .setup = xchk_setup_quota,
.scrub = xchk_quota, .scrub = xchk_quota,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
[XFS_SCRUB_TYPE_PQUOTA] = { /* project quota */ [XFS_SCRUB_TYPE_PQUOTA] = { /* project quota */
.type = ST_FS, .type = ST_FS,
.setup = xchk_setup_quota, .setup = xchk_setup_quota,
.scrub = xchk_quota, .scrub = xchk_quota,
.repair = xfs_repair_notsupported, .repair = xrep_notsupported,
}, },
}; };
...@@ -457,7 +457,7 @@ static inline void xchk_postmortem(struct xfs_scrub_context *sc) ...@@ -457,7 +457,7 @@ static inline void xchk_postmortem(struct xfs_scrub_context *sc)
if ((sc->sm->sm_flags & XFS_SCRUB_IFLAG_REPAIR) && if ((sc->sm->sm_flags & XFS_SCRUB_IFLAG_REPAIR) &&
(sc->sm->sm_flags & (XFS_SCRUB_OFLAG_CORRUPT | (sc->sm->sm_flags & (XFS_SCRUB_OFLAG_CORRUPT |
XFS_SCRUB_OFLAG_XCORRUPT))) XFS_SCRUB_OFLAG_XCORRUPT)))
xfs_repair_failure(sc->mp); xrep_failure(sc->mp);
} }
#else #else
static inline void xchk_postmortem(struct xfs_scrub_context *sc) static inline void xchk_postmortem(struct xfs_scrub_context *sc)
...@@ -555,13 +555,13 @@ xfs_scrub_metadata( ...@@ -555,13 +555,13 @@ xfs_scrub_metadata(
* If it's broken, userspace wants us to fix it, and we haven't * If it's broken, userspace wants us to fix it, and we haven't
* already tried to fix it, then attempt a repair. * already tried to fix it, then attempt a repair.
*/ */
error = xfs_repair_attempt(ip, &sc, &already_fixed); error = xrep_attempt(ip, &sc, &already_fixed);
if (error == -EAGAIN) { if (error == -EAGAIN) {
if (sc.try_harder) if (sc.try_harder)
try_harder = true; try_harder = true;
error = xchk_teardown(&sc, ip, 0); error = xchk_teardown(&sc, ip, 0);
if (error) { if (error) {
xfs_repair_failure(mp); xrep_failure(mp);
goto out; goto out;
} }
goto retry_op; goto retry_op;
......
...@@ -55,8 +55,8 @@ DEFINE_EVENT(xchk_class, name, \ ...@@ -55,8 +55,8 @@ DEFINE_EVENT(xchk_class, name, \
DEFINE_SCRUB_EVENT(xchk_start); DEFINE_SCRUB_EVENT(xchk_start);
DEFINE_SCRUB_EVENT(xchk_done); DEFINE_SCRUB_EVENT(xchk_done);
DEFINE_SCRUB_EVENT(xchk_deadlock_retry); DEFINE_SCRUB_EVENT(xchk_deadlock_retry);
DEFINE_SCRUB_EVENT(xfs_repair_attempt); DEFINE_SCRUB_EVENT(xrep_attempt);
DEFINE_SCRUB_EVENT(xfs_repair_done); DEFINE_SCRUB_EVENT(xrep_done);
TRACE_EVENT(xchk_op_error, TRACE_EVENT(xchk_op_error,
TP_PROTO(struct xfs_scrub_context *sc, xfs_agnumber_t agno, TP_PROTO(struct xfs_scrub_context *sc, xfs_agnumber_t agno,
...@@ -483,7 +483,7 @@ TRACE_EVENT(xchk_xref_error, ...@@ -483,7 +483,7 @@ TRACE_EVENT(xchk_xref_error,
/* repair tracepoints */ /* repair tracepoints */
#if IS_ENABLED(CONFIG_XFS_ONLINE_REPAIR) #if IS_ENABLED(CONFIG_XFS_ONLINE_REPAIR)
DECLARE_EVENT_CLASS(xfs_repair_extent_class, DECLARE_EVENT_CLASS(xrep_extent_class,
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
xfs_agblock_t agbno, xfs_extlen_t len), xfs_agblock_t agbno, xfs_extlen_t len),
TP_ARGS(mp, agno, agbno, len), TP_ARGS(mp, agno, agbno, len),
...@@ -506,15 +506,15 @@ DECLARE_EVENT_CLASS(xfs_repair_extent_class, ...@@ -506,15 +506,15 @@ DECLARE_EVENT_CLASS(xfs_repair_extent_class,
__entry->len) __entry->len)
); );
#define DEFINE_REPAIR_EXTENT_EVENT(name) \ #define DEFINE_REPAIR_EXTENT_EVENT(name) \
DEFINE_EVENT(xfs_repair_extent_class, name, \ DEFINE_EVENT(xrep_extent_class, name, \
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \ TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
xfs_agblock_t agbno, xfs_extlen_t len), \ xfs_agblock_t agbno, xfs_extlen_t len), \
TP_ARGS(mp, agno, agbno, len)) TP_ARGS(mp, agno, agbno, len))
DEFINE_REPAIR_EXTENT_EVENT(xfs_repair_dispose_btree_extent); DEFINE_REPAIR_EXTENT_EVENT(xrep_dispose_btree_extent);
DEFINE_REPAIR_EXTENT_EVENT(xfs_repair_collect_btree_extent); DEFINE_REPAIR_EXTENT_EVENT(xrep_collect_btree_extent);
DEFINE_REPAIR_EXTENT_EVENT(xfs_repair_agfl_insert); DEFINE_REPAIR_EXTENT_EVENT(xrep_agfl_insert);
DECLARE_EVENT_CLASS(xfs_repair_rmap_class, DECLARE_EVENT_CLASS(xrep_rmap_class,
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
xfs_agblock_t agbno, xfs_extlen_t len, xfs_agblock_t agbno, xfs_extlen_t len,
uint64_t owner, uint64_t offset, unsigned int flags), uint64_t owner, uint64_t offset, unsigned int flags),
...@@ -547,17 +547,17 @@ DECLARE_EVENT_CLASS(xfs_repair_rmap_class, ...@@ -547,17 +547,17 @@ DECLARE_EVENT_CLASS(xfs_repair_rmap_class,
__entry->flags) __entry->flags)
); );
#define DEFINE_REPAIR_RMAP_EVENT(name) \ #define DEFINE_REPAIR_RMAP_EVENT(name) \
DEFINE_EVENT(xfs_repair_rmap_class, name, \ DEFINE_EVENT(xrep_rmap_class, name, \
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \ TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
xfs_agblock_t agbno, xfs_extlen_t len, \ xfs_agblock_t agbno, xfs_extlen_t len, \
uint64_t owner, uint64_t offset, unsigned int flags), \ uint64_t owner, uint64_t offset, unsigned int flags), \
TP_ARGS(mp, agno, agbno, len, owner, offset, flags)) TP_ARGS(mp, agno, agbno, len, owner, offset, flags))
DEFINE_REPAIR_RMAP_EVENT(xfs_repair_alloc_extent_fn); DEFINE_REPAIR_RMAP_EVENT(xrep_alloc_extent_fn);
DEFINE_REPAIR_RMAP_EVENT(xfs_repair_ialloc_extent_fn); DEFINE_REPAIR_RMAP_EVENT(xrep_ialloc_extent_fn);
DEFINE_REPAIR_RMAP_EVENT(xfs_repair_rmap_extent_fn); DEFINE_REPAIR_RMAP_EVENT(xrep_rmap_extent_fn);
DEFINE_REPAIR_RMAP_EVENT(xfs_repair_bmap_extent_fn); DEFINE_REPAIR_RMAP_EVENT(xrep_bmap_extent_fn);
TRACE_EVENT(xfs_repair_refcount_extent_fn, TRACE_EVENT(xrep_refcount_extent_fn,
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
struct xfs_refcount_irec *irec), struct xfs_refcount_irec *irec),
TP_ARGS(mp, agno, irec), TP_ARGS(mp, agno, irec),
...@@ -583,7 +583,7 @@ TRACE_EVENT(xfs_repair_refcount_extent_fn, ...@@ -583,7 +583,7 @@ TRACE_EVENT(xfs_repair_refcount_extent_fn,
__entry->refcount) __entry->refcount)
) )
TRACE_EVENT(xfs_repair_init_btblock, TRACE_EVENT(xrep_init_btblock,
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno, TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno,
xfs_btnum_t btnum), xfs_btnum_t btnum),
TP_ARGS(mp, agno, agbno, btnum), TP_ARGS(mp, agno, agbno, btnum),
...@@ -605,7 +605,7 @@ TRACE_EVENT(xfs_repair_init_btblock, ...@@ -605,7 +605,7 @@ TRACE_EVENT(xfs_repair_init_btblock,
__entry->agbno, __entry->agbno,
__entry->btnum) __entry->btnum)
) )
TRACE_EVENT(xfs_repair_findroot_block, TRACE_EVENT(xrep_findroot_block,
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno, TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno,
uint32_t magic, uint16_t level), uint32_t magic, uint16_t level),
TP_ARGS(mp, agno, agbno, magic, level), TP_ARGS(mp, agno, agbno, magic, level),
...@@ -630,7 +630,7 @@ TRACE_EVENT(xfs_repair_findroot_block, ...@@ -630,7 +630,7 @@ TRACE_EVENT(xfs_repair_findroot_block,
__entry->magic, __entry->magic,
__entry->level) __entry->level)
) )
TRACE_EVENT(xfs_repair_calc_ag_resblks, TRACE_EVENT(xrep_calc_ag_resblks,
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
xfs_agino_t icount, xfs_agblock_t aglen, xfs_agblock_t freelen, xfs_agino_t icount, xfs_agblock_t aglen, xfs_agblock_t freelen,
xfs_agblock_t usedlen), xfs_agblock_t usedlen),
...@@ -659,7 +659,7 @@ TRACE_EVENT(xfs_repair_calc_ag_resblks, ...@@ -659,7 +659,7 @@ TRACE_EVENT(xfs_repair_calc_ag_resblks,
__entry->freelen, __entry->freelen,
__entry->usedlen) __entry->usedlen)
) )
TRACE_EVENT(xfs_repair_calc_ag_resblks_btsize, TRACE_EVENT(xrep_calc_ag_resblks_btsize,
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
xfs_agblock_t bnobt_sz, xfs_agblock_t inobt_sz, xfs_agblock_t bnobt_sz, xfs_agblock_t inobt_sz,
xfs_agblock_t rmapbt_sz, xfs_agblock_t refcbt_sz), xfs_agblock_t rmapbt_sz, xfs_agblock_t refcbt_sz),
...@@ -688,7 +688,7 @@ TRACE_EVENT(xfs_repair_calc_ag_resblks_btsize, ...@@ -688,7 +688,7 @@ TRACE_EVENT(xfs_repair_calc_ag_resblks_btsize,
__entry->rmapbt_sz, __entry->rmapbt_sz,
__entry->refcbt_sz) __entry->refcbt_sz)
) )
TRACE_EVENT(xfs_repair_reset_counters, TRACE_EVENT(xrep_reset_counters,
TP_PROTO(struct xfs_mount *mp), TP_PROTO(struct xfs_mount *mp),
TP_ARGS(mp), TP_ARGS(mp),
TP_STRUCT__entry( TP_STRUCT__entry(
...@@ -701,7 +701,7 @@ TRACE_EVENT(xfs_repair_reset_counters, ...@@ -701,7 +701,7 @@ TRACE_EVENT(xfs_repair_reset_counters,
MAJOR(__entry->dev), MINOR(__entry->dev)) MAJOR(__entry->dev), MINOR(__entry->dev))
) )
TRACE_EVENT(xfs_repair_ialloc_insert, TRACE_EVENT(xrep_ialloc_insert,
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
xfs_agino_t startino, uint16_t holemask, uint8_t count, xfs_agino_t startino, uint16_t holemask, uint8_t count,
uint8_t freecount, uint64_t freemask), uint8_t freecount, uint64_t freemask),
......
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