]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix uninitialized list head in struct xfs_refcount_recovery
authorDarrick J. Wong <djwong@kernel.org>
Wed, 26 Oct 2022 21:55:04 +0000 (14:55 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 31 Oct 2022 15:58:22 +0000 (08:58 -0700)
commit733bf877e76a0f9138a246cc58529bcaefdd3271
tree1b3a83cd206ae168dd0cfa8fecee2dc9fc79c673
parentcf3d56eacc59bbd39f926369b4f2516573ae8b9d
xfs: fix uninitialized list head in struct xfs_refcount_recovery

We're supposed to initialize the list head of an object before adding it
to another list.  Fix that, and stop using the kmem_{alloc,free} calls
from the Irix days.

Fixes: 72a40691e6f6 ("xfs: store in-progress CoW allocations in the refcount btree")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_refcount.c