From f470603782feb36a2a1ab8c1c3d65b57950d85fa Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 22 Jun 2022 14:28:52 -0500 Subject: [PATCH] xfs: refactor buffer cancellation table allocation 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 Reviewed-by: Christoph Hellwig Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner Signed-off-by: Eric Sandeen --- include/xfs_log_recover.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/xfs_log_recover.h b/include/xfs_log_recover.h index ea6dede25..1745de97e 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 -- 2.47.3