| From foo@baz Mon Jul 4 04:42:02 PM CEST 2022 |
| From: Amir Goldstein <amir73il@gmail.com> |
| Date: Sun, 3 Jul 2022 08:04:54 +0300 |
| Subject: xfs: fix xfs_trans slab cache name |
| To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| Cc: Sasha Levin <sashal@kernel.org>, "Darrick J . Wong" <djwong@kernel.org>, Leah Rumancik <leah.rumancik@gmail.com>, Chandan Babu R <chandan.babu@oracle.com>, Luis Chamberlain <mcgrof@kernel.org>, Adam Manzanares <a.manzanares@samsung.com>, linux-xfs@vger.kernel.org, stable@vger.kernel.org, Anthony Iliopoulos <ailiop@suse.com> |
| Message-ID: <20220703050456.3222610-6-amir73il@gmail.com> |
| |
| From: Anthony Iliopoulos <ailiop@suse.com> |
| |
| commit 25dfa65f814951a33072bcbae795989d817858da upstream. |
| |
| 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> |
| Signed-off-by: Amir Goldstein <amir73il@gmail.com> |
| Acked-by: Darrick J. Wong <djwong@kernel.org> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| --- |
| fs/xfs/xfs_super.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- a/fs/xfs/xfs_super.c |
| +++ b/fs/xfs/xfs_super.c |
| @@ -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) |