OSDN Git Service

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)
commitc1ccf967bf962b998f0c096e06a658ece27d10a0
tree1b3a83cd206ae168dd0cfa8fecee2dc9fc79c673
parentf1fdc8207840672a46f26414f2c989ec078a153b
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: 174edb0e46e5 ("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