xfs: use xfs_defer_alloc a bit more
authorDave Chinner <dchinner@redhat.com>
Mon, 15 Jan 2024 22:59:50 +0000 (09:59 +1100)
committerChandan Babu R <chandanbabu@kernel.org>
Tue, 13 Feb 2024 12:37:36 +0000 (18:07 +0530)
commit57b98393b812ddaf9cf33a0d57d70b25cabfed66
treeae73751da95ab58b0b577e4f9fc320623a7efd50
parent204fae32d5f7b9ac673d3d4f636dcef8697db2f0
xfs: use xfs_defer_alloc a bit more

Noticed by inspection, simple factoring allows the same allocation
routine to be used for both transaction and recovery contexts.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/libxfs/xfs_defer.c