]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: refactor buffer cancellation table allocation
authorDarrick J. Wong <djwong@kernel.org>
Thu, 16 Nov 2023 02:28:17 +0000 (18:28 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 16:56:25 +0000 (16:56 +0000)
commitb8effd31a862480bca167c4d741f198683501da3
tree3b6d1f7f707370e2ee486967a5ff95c4e9a88244
parent4968c2aa6a1f8bb38ab8a4678293f5f033447348
xfs: refactor buffer cancellation table allocation

[ Upstream 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.

( backport: dependency of 8db074bd84df5ccc88bff3f8f900f66f4b8349fa )

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>
Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
Acked-by: Chandan Babu R <chandanbabu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
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