From: Carlos Maiolino <cmaiolino@redhat.com>
To: linux-xfs@vger.kernel.org
Subject: [PATCH 0/4] Get rid of pointless wrappers
Date: Thu, 14 Nov 2019 21:09:51 +0100 [thread overview]
Message-ID: <20191114200955.1365926-1-cmaiolino@redhat.com> (raw)
As agreed on the first version of the series to cleanup kmem_* wrappers and KM_*
flags, we've decided to split the whole work into 3 parts.
This is the first one, containing the removal of wrappers which are pointless,
requiring no logic change and no flag change, just replacing the kmem_* callers
by the proper generic memory allocation helpers.
All first 3 patches already have the reviewed-by, the last one is a new patch,
removing kmem_free() and converting their users to use kfree() directly, or
kvfree(), for those users which memory have been allocated by kmem_alloc_io() or
kmem_alloc_large().
Cheers
Carlos Maiolino (4):
xfs: Remove slab init wrappers
xfs: Remove kmem_zone_destroy() wrapper
xfs: Remove kmem_zone_free() wrapper
xfs: Remove kmem_free()
fs/xfs/kmem.h | 35 -------
fs/xfs/libxfs/xfs_attr.c | 2 +-
fs/xfs/libxfs/xfs_attr_leaf.c | 8 +-
fs/xfs/libxfs/xfs_btree.c | 2 +-
fs/xfs/libxfs/xfs_da_btree.c | 12 +--
fs/xfs/libxfs/xfs_defer.c | 4 +-
fs/xfs/libxfs/xfs_dir2.c | 18 ++--
fs/xfs/libxfs/xfs_dir2_block.c | 4 +-
fs/xfs/libxfs/xfs_dir2_sf.c | 8 +-
fs/xfs/libxfs/xfs_iext_tree.c | 8 +-
fs/xfs/libxfs/xfs_inode_fork.c | 16 +--
fs/xfs/libxfs/xfs_refcount.c | 4 +-
fs/xfs/scrub/agheader.c | 2 +-
fs/xfs/scrub/agheader_repair.c | 2 +-
fs/xfs/scrub/attr.c | 2 +-
fs/xfs/scrub/bitmap.c | 4 +-
fs/xfs/scrub/btree.c | 2 +-
fs/xfs/scrub/refcount.c | 8 +-
fs/xfs/scrub/scrub.c | 2 +-
fs/xfs/xfs_acl.c | 4 +-
fs/xfs/xfs_attr_inactive.c | 2 +-
fs/xfs/xfs_attr_list.c | 4 +-
fs/xfs/xfs_bmap_item.c | 8 +-
fs/xfs/xfs_buf.c | 25 ++---
fs/xfs/xfs_buf_item.c | 8 +-
fs/xfs/xfs_dquot.c | 20 ++--
fs/xfs/xfs_dquot_item.c | 8 +-
fs/xfs/xfs_error.c | 2 +-
fs/xfs/xfs_extent_busy.c | 2 +-
fs/xfs/xfs_extfree_item.c | 18 ++--
fs/xfs/xfs_filestream.c | 4 +-
fs/xfs/xfs_icache.c | 4 +-
fs/xfs/xfs_icreate_item.c | 2 +-
fs/xfs/xfs_inode.c | 12 +--
fs/xfs/xfs_inode_item.c | 4 +-
fs/xfs/xfs_ioctl.c | 6 +-
fs/xfs/xfs_ioctl32.c | 2 +-
fs/xfs/xfs_iops.c | 2 +-
fs/xfs/xfs_itable.c | 4 +-
fs/xfs/xfs_iwalk.c | 4 +-
fs/xfs/xfs_log.c | 14 +--
fs/xfs/xfs_log_cil.c | 16 +--
fs/xfs/xfs_log_recover.c | 50 +++++-----
fs/xfs/xfs_mount.c | 8 +-
fs/xfs/xfs_mru_cache.c | 8 +-
fs/xfs/xfs_qm.c | 6 +-
fs/xfs/xfs_refcount_item.c | 10 +-
fs/xfs/xfs_rmap_item.c | 10 +-
fs/xfs/xfs_rtalloc.c | 8 +-
fs/xfs/xfs_super.c | 171 ++++++++++++++++++---------------
fs/xfs/xfs_trans.c | 2 +-
fs/xfs/xfs_trans_ail.c | 4 +-
fs/xfs/xfs_trans_dquot.c | 2 +-
53 files changed, 292 insertions(+), 305 deletions(-)
--
2.23.0
next reply other threads:[~2019-11-14 20:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-14 20:09 Carlos Maiolino [this message]
2019-11-14 20:09 ` [PATCH 1/4] xfs: Remove slab init wrappers Carlos Maiolino
2019-11-14 20:09 ` [PATCH 2/4] xfs: Remove kmem_zone_destroy() wrapper Carlos Maiolino
2019-11-14 20:09 ` [PATCH 3/4] xfs: Remove kmem_zone_free() wrapper Carlos Maiolino
2019-11-14 20:09 ` [PATCH 4/4] xfs: Remove kmem_free() Carlos Maiolino
2019-11-14 21:00 ` Darrick J. Wong
2019-11-15 14:20 ` Carlos Maiolino
2019-11-15 17:23 ` Darrick J. Wong
2019-11-18 0:39 ` Dave Chinner
2019-11-18 8:30 ` Carlos Maiolino
2019-11-21 5:43 ` Darrick J. Wong
2019-11-22 8:50 ` Carlos Maiolino
2019-11-22 16:11 ` Darrick J. Wong
2019-11-25 14:10 ` Carlos Maiolino
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191114200955.1365926-1-cmaiolino@redhat.com \
--to=cmaiolino@redhat.com \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).