[PATCH 0/4] Get rid of pointless wrappers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux