xfs: fix xfs_trans slab cache name
authorAnthony Iliopoulos <ailiop@suse.com>
Thu, 25 Mar 2021 18:47:05 +0000 (11:47 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 25 Mar 2021 23:47:53 +0000 (16:47 -0700)
Removal of kmem_zone_init wrappers accidentally changed a slab cache
name from "xfs_trans" to "xf_trans". Fix this so that userspace
consumers of /proc/slabinfo and /sys/kernel/slab can find it again.

Fixes: b1231760e443 ("xfs: Remove slab init wrappers")
Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_super.c

index 19f58c9..8d079c5 100644 (file)
@@ -1934,7 +1934,7 @@ xfs_init_zones(void)
        if (!xfs_ifork_zone)
                goto out_destroy_da_state_zone;
 
-       xfs_trans_zone = kmem_cache_create("xf_trans",
+       xfs_trans_zone = kmem_cache_create("xfs_trans",
                                           sizeof(struct xfs_trans),
                                           0, 0, NULL);
        if (!xfs_trans_zone)