xfs: clean up buffer allocation in xlog_do_recovery_pass
authorChristoph Hellwig <hch@lst.de>
Tue, 30 Apr 2024 04:07:56 +0000 (06:07 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Fri, 3 May 2024 05:40:17 +0000 (11:10 +0530)
commit67a841f9d7246e45dd8953dc936776132d90a048
treec2eb9b6f815c0833678a4761244639f5a6ea4a26
parent45cf976008ddef4a9c9a30310c9b4fb2a9a6602a
xfs: clean up buffer allocation in xlog_do_recovery_pass

Merge the initial xlog_alloc_buffer calls, and pass the variable
designating the length that is initialized to 1 above instead of passing
the open coded 1 directly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/xfs_log_recover.c