xfs: refactor buffer cancellation table allocation
authorDarrick J. Wong <djwong@kernel.org>
Fri, 27 May 2022 00:26:17 +0000 (10:26 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 27 May 2022 00:26:17 +0000 (10:26 +1000)
commit2723234923b3294dbcf6019c288c87465e927ed4
tree080ff2f6694a018c22c937f3a3753e86d588a6e0
parentab6a8d3f1a2a85dea5b300fd63b7033cb1040a95
xfs: refactor buffer cancellation table allocation

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>
fs/xfs/libxfs/xfs_log_recover.h
fs/xfs/xfs_buf_item_recover.c
fs/xfs/xfs_log_priv.h
fs/xfs/xfs_log_recover.c