linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* make alloc_anon_inode more useful
@ 2021-03-09 15:53 Christoph Hellwig
  2021-03-09 15:53 ` [PATCH 1/9] fs: rename alloc_anon_inode to alloc_anon_inode_sb Christoph Hellwig
                   ` (11 more replies)
  0 siblings, 12 replies; 33+ messages in thread
From: Christoph Hellwig @ 2021-03-09 15:53 UTC (permalink / raw)
  To: Al Viro
  Cc: Andrew Morton, Daniel Vetter, Nadav Amit, VMware, Inc.,
	Michael S. Tsirkin, David Hildenbrand, Minchan Kim, Nitin Gupta,
	Jason Gunthorpe, Alex Williamson, linuxppc-dev, linux-kernel,
	dri-devel, virtualization, linux-fsdevel, linux-mm

Hi all,

this series first renames the existing alloc_anon_inode to
alloc_anon_inode_sb to clearly mark it as requiring a superblock.

It then adds a new alloc_anon_inode that works on the anon_inode
file system super block, thus removing tons of boilerplate code.

The few remainig callers of alloc_anon_inode_sb all use alloc_file_pseudo
later, but might also be ripe for some cleanup.

Diffstat:
 arch/powerpc/platforms/pseries/cmm.c |   27 +-------------
 drivers/dma-buf/dma-buf.c            |    2 -
 drivers/gpu/drm/drm_drv.c            |   64 +----------------------------------
 drivers/misc/cxl/api.c               |    2 -
 drivers/misc/vmw_balloon.c           |   24 +------------
 drivers/scsi/cxlflash/ocxl_hw.c      |    2 -
 drivers/virtio/virtio_balloon.c      |   30 +---------------
 fs/aio.c                             |    2 -
 fs/anon_inodes.c                     |   15 +++++++-
 fs/libfs.c                           |    2 -
 include/linux/anon_inodes.h          |    1 
 include/linux/fs.h                   |    2 -
 kernel/resource.c                    |   30 ++--------------
 mm/z3fold.c                          |   38 +-------------------
 mm/zsmalloc.c                        |   48 +-------------------------
 15 files changed, 39 insertions(+), 250 deletions(-)

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

end of thread, other threads:[~2023-02-03  9:49 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 15:53 make alloc_anon_inode more useful Christoph Hellwig
2021-03-09 15:53 ` [PATCH 1/9] fs: rename alloc_anon_inode to alloc_anon_inode_sb Christoph Hellwig
2021-03-09 16:21   ` David Hildenbrand
2021-03-09 19:33   ` Gao Xiang
2021-03-10  6:39   ` Minchan Kim
2021-03-10  8:30     ` Christoph Hellwig
2021-03-10  9:33   ` Christian Brauner
2021-03-09 15:53 ` [PATCH 2/9] fs: add an argument-less alloc_anon_inode Christoph Hellwig
2021-03-09 16:22   ` David Hildenbrand
2021-03-09 19:34   ` Gao Xiang
2021-03-10  9:35   ` Christian Brauner
2021-03-09 15:53 ` [PATCH 3/9] powerpc/pseries: remove the ppc-cmm file system Christoph Hellwig
2021-03-09 16:26   ` David Hildenbrand
2021-03-09 16:30   ` Jason Gunthorpe
2021-03-10 16:29   ` Al Viro
2021-03-11  8:42     ` Christoph Hellwig
2021-03-09 15:53 ` [PATCH 4/9] drm: remove the drm " Christoph Hellwig
2021-03-10 16:32   ` Al Viro
2021-03-11  8:35     ` Christoph Hellwig
2021-03-09 15:53 ` [PATCH 5/9] vmw_balloon: remove the balloon-vmware " Christoph Hellwig
2021-03-09 16:28   ` David Hildenbrand
2021-03-09 15:53 ` [PATCH 6/9] virtio_balloon: remove the balloon-kvm " Christoph Hellwig
2021-03-09 16:29   ` David Hildenbrand
2021-03-09 15:53 ` [PATCH 7/9] iomem: remove the iomem " Christoph Hellwig
2021-03-14 13:55   ` [iomem] e14497b88f: BUG:KASAN:null-ptr-deref_in_alloc_anon_inode kernel test robot
2021-03-09 15:53 ` [PATCH 8/9] z3fold: remove the z3fold file system Christoph Hellwig
2021-03-09 15:53 ` [PATCH 9/9] zsmalloc: remove the zsmalloc " Christoph Hellwig
2021-03-10  6:44   ` Minchan Kim
2021-03-09 16:54 ` make alloc_anon_inode more useful Jason Gunthorpe
2021-03-10  8:32   ` Christoph Hellwig
2021-03-10  4:05 ` Matthew Wilcox
2021-03-10  8:37   ` Christoph Hellwig
2023-02-03  9:49 ` Jingbo Xu

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).