Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/6] btrfs: Use KMEM_CACHE instead of kmem_cache_create
@ 2024-02-20  9:06 Kunwu Chan
  2024-02-20  9:06 ` [PATCH 1/6] btrfs: Simplify the allocation of slab caches in btrfs_delayed_inode_init Kunwu Chan
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Kunwu Chan @ 2024-02-20  9:06 UTC (permalink / raw)
  To: clm, josef, dsterba; +Cc: linux-btrfs, linux-kernel, Kunwu Chan

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-02-22  3:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-20  9:06 [PATCH 0/6] btrfs: Use KMEM_CACHE instead of kmem_cache_create Kunwu Chan
2024-02-20  9:06 ` [PATCH 1/6] btrfs: Simplify the allocation of slab caches in btrfs_delayed_inode_init Kunwu Chan
2024-02-20  9:06 ` [PATCH 2/6] btrfs: Simplify the allocation of slab caches in ordered_data_init Kunwu Chan
2024-02-20  9:06 ` [PATCH 3/6] btrfs: Simplify the allocation of slab caches in btrfs_transaction_init Kunwu Chan
2024-02-20  9:06 ` [PATCH 4/6] btrfs: Simplify the allocation of slab caches in btrfs_ctree_init Kunwu Chan
2024-02-20  9:06 ` [PATCH 5/6] btrfs: Simplify the allocation of slab caches in btrfs_delayed_ref_init Kunwu Chan
2024-02-20  9:06 ` [PATCH 6/6] btrfs: Simplify the allocation of slab caches in btrfs_free_space_init Kunwu Chan
2024-02-21 12:00 ` [PATCH 0/6] btrfs: Use KMEM_CACHE instead of kmem_cache_create David Sterba
2024-02-22  3:10   ` Kunwu Chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox