[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240220090645.108625-1-chentao@kylinos.cn>
Date: Tue, 20 Feb 2024 17:06:39 +0800
From: Kunwu Chan <chentao@...inos.cn>
To: clm@...com,
josef@...icpanda.com,
dsterba@...e.com
Cc: linux-btrfs@...r.kernel.org,
linux-kernel@...r.kernel.org,
Kunwu Chan <chentao@...inos.cn>
Subject: [PATCH 0/6] btrfs: Use KMEM_CACHE instead of kmem_cache_create
As David Sterba said in
https://lore.kernel.org/all/20240205160408.GI355@twin.jikos.cz/
I'm using a patchset to cleanup the same issues in the 'brtfs' module.
For where the cache name and the structure name match.
Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.
Kunwu Chan (6):
btrfs: Simplify the allocation of slab caches in
btrfs_delayed_inode_init
btrfs: Simplify the allocation of slab caches in ordered_data_init
btrfs: Simplify the allocation of slab caches in
btrfs_transaction_init
btrfs: Simplify the allocation of slab caches in btrfs_ctree_init
btrfs: Simplify the allocation of slab caches in
btrfs_delayed_ref_init
btrfs: Simplify the allocation of slab caches in btrfs_free_space_init
fs/btrfs/ctree.c | 4 +---
fs/btrfs/delayed-inode.c | 6 +-----
fs/btrfs/delayed-ref.c | 24 ++++++++----------------
fs/btrfs/free-space-cache.c | 4 +---
fs/btrfs/ordered-data.c | 5 +----
fs/btrfs/transaction.c | 5 ++---
6 files changed, 14 insertions(+), 34 deletions(-)
--
2.39.2
Powered by blists - more mailing lists