]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - include/kmem.h
xfs: fix uninitialized list head in struct xfs_refcount_recovery
authorDarrick J. Wong <djwong@kernel.org>
Fri, 18 Nov 2022 11:23:57 +0000 (12:23 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 21 Nov 2022 14:26:49 +0000 (15:26 +0100)
commit7accbcd005b3cf89a5e53e7e36475ad17b2387f1
tree0be352dc841f5d30882829f0cd0ce8b6d9a25747
parent8b2b27581b2c84025a9fa84320c48b2c726867c3
xfs: fix uninitialized list head in struct xfs_refcount_recovery

Source kernel commit: c1ccf967bf962b998f0c096e06a658ece27d10a0

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
include/kmem.h
libxfs/xfs_refcount.c