xfs: remove unused struct declarations
PATCH 1/1 xfs: remove unused struct declarations
After scratching my head looking for "xfs_busy_extent" I realized it's not used; it's xfs_extent_busy, and the declaration for the other name is bogus. Remove that and a few others as well.
(struct xfs_log_callback is used, but the 2nd declaration is unnecessary).
Signed-off-by Eric Sandeen <[email protected]>
---
fs/xfs/libxfs/xfs_log_recover.h +0 -1
@@ -42,7 +42,6 @@xfs_log_iovec_t *ri_buf;/* ptr to regions buffer */ } xlog_recover_item_t; -struct xlog_tid ; typedef struct xlog_recover { struct hlist_node r_list; xlog_tid_t r_log_tid; /* log's transaction id */
fs/xfs/xfs_log.h +0 -1
@@ -124,7 +124,6 @@ static inline xfs_lsn_t _lsn_cmp(xfs_lsn_t lsn1, xfs_lsn_t lsn2)struct xfs_log_item ;struct xfs_item_ops ;struct xfs_trans ; -struct xfs_log_callback ; xfs_lsn_t xfs_log_done(struct xfs_mount *mp, struct xlog_ticket *ticket,
fs/xfs/xfs_trace.h +0 -1
@@ -2245,7 +2245,6 @@/* deferred ops */ struct xfs_defer_pending ; -struct xfs_defer_intake ;struct xfs_defer_ops ; DECLARE_EVENT_CLASS(xfs_defer_class,
fs/xfs/xfs_trans.h +0 -1
@@ -32,7 +32,6 @@struct xfs_trans ;struct xfs_trans_res ;struct xfs_dquot_acct ; -struct xfs_busy_extent ;struct xfs_rud_log_item ;struct xfs_rui_log_item ;struct xfs_btree_cur ;
Quoted 8 lines · Eric Sandeen
After scratching my head looking for "
xfs_busy_extent" I realized it's not used; it'sxfs_extent_busy, and the declaration for the other name is bogus. Remove that and a few others as well.(struct
xfs_log_callbackis used, but the 2nd declaration is unnecessary).Signed-off-by Eric Sandeen <[email protected]>
Looks good,
Reviewed-by Christoph Hellwig <[email protected]>