diff mbox series

xfs: fix xfs_trans slab cache name

Message ID 20210325164750.19599-1-ailiop@suse.com (mailing list archive)
State Accepted
Headers show
Series xfs: fix xfs_trans slab cache name | expand

Commit Message

Anthony Iliopoulos March 25, 2021, 4:47 p.m. UTC
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>
---
 fs/xfs/xfs_super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Darrick J. Wong March 25, 2021, 6:47 p.m. UTC | #1
On Thu, Mar 25, 2021 at 05:47:50PM +0100, Anthony Iliopoulos wrote:
> 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>

Heh, whoops.
Reviewed-by: Darrick J. Wong <djwong@kernel.org>

--D

> ---
>  fs/xfs/xfs_super.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
> index 699c61637961..f816137ae976 100644
> --- a/fs/xfs/xfs_super.c
> +++ b/fs/xfs/xfs_super.c
> @@ -1905,7 +1905,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)
> -- 
> 2.31.0
>
diff mbox series

Patch

diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 699c61637961..f816137ae976 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -1905,7 +1905,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)