From: Darrick J. Wong Date: Wed, 22 Jun 2022 19:28:52 +0000 (-0500) Subject: xfs: refactor buffer cancellation table allocation X-Git-Tag: v5.19.0-rc0~9 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f470603782feb36a2a1ab8c1c3d65b57950d85fa;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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