summaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub/dabtree.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-11-06 17:03:16 -0800
committerDarrick J. Wong <djwong@kernel.org>2022-11-16 15:25:02 -0800
commit306195f355bbdcc3eff6cffac05bcd93a5e419ed (patch)
treeb3873af48dbb2db7145db89b77c59da7e4dda70d /fs/xfs/scrub/dabtree.c
parentfcd2a43488d5a211aec94e28369b2a72c28258a2 (diff)
downloadlinux-306195f355bbdcc3eff6cffac05bcd93a5e419ed.tar.gz
linux-306195f355bbdcc3eff6cffac05bcd93a5e419ed.tar.bz2
linux-306195f355bbdcc3eff6cffac05bcd93a5e419ed.zip
xfs: pivot online scrub away from kmem.[ch]
Convert all the online scrub code to use the Linux slab allocator functions directly instead of going through the kmem wrappers. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/dabtree.c')
-rw-r--r--fs/xfs/scrub/dabtree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/scrub/dabtree.c b/fs/xfs/scrub/dabtree.c
index 84fe3d33d699..d17cee177085 100644
--- a/fs/xfs/scrub/dabtree.c
+++ b/fs/xfs/scrub/dabtree.c
@@ -486,7 +486,7 @@ xchk_da_btree(
return 0;
/* Set up initial da state. */
- ds = kmem_zalloc(sizeof(struct xchk_da_btree), KM_NOFS | KM_MAYFAIL);
+ ds = kzalloc(sizeof(struct xchk_da_btree), XCHK_GFP_FLAGS);
if (!ds)
return -ENOMEM;
ds->dargs.dp = sc->ip;
@@ -591,6 +591,6 @@ out:
out_state:
xfs_da_state_free(ds->state);
- kmem_free(ds);
+ kfree(ds);
return error;
}