aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-05-31 16:06:00 +1000
committerDave Chinner <david@fromorbit.com>2022-05-31 16:06:00 +1000
commita5a57f59ab2ab09333d12a5d56b6149b473159d9 (patch)
treef9a67117e796a3050f1caf45e7ad5c79deb38429
parent71495bc24cafba141b0ae9e2890edbf302e8ea85 (diff)
downloadxfsprogs-dev-libxfs-5.19-sync.tar.gz
xfs: refactor buffer cancellation table allocationlibxfs-5.19-sync
Source kernel commit: 2723234923b3294dbcf6019c288c87465e927ed4 Move the code that allocates and frees the buffer cancellation tables used by log recovery into the file that actually uses the tables. This is a precursor to some cleanups and a memory leak fix. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
-rw-r--r--include/xfs_log_recover.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/xfs_log_recover.h b/include/xfs_log_recover.h
index ea6dede255..1745de97e9 100644
--- a/include/xfs_log_recover.h
+++ b/include/xfs_log_recover.h
@@ -41,12 +41,6 @@ struct xlog_recover {
#define ITEM_TYPE(i) (*(unsigned short *)(i)->ri_buf[0].i_addr)
-/*
- * This is the number of entries in the l_buf_cancel_table used during
- * recovery.
- */
-#define XLOG_BC_TABLE_SIZE 64
-
#define XLOG_RECOVER_PASS1 1
#define XLOG_RECOVER_PASS2 2