LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: viro@zeniv.linux.org.uk
Cc: "Sergey Senozhatsky" <sergey.senozhatsky.work@gmail.com>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	dri-devel@lists.freedesktop.org,
	"J. Bruce Fields" <bfields@fieldses.org>,
	ceph-devel@vger.kernel.org, "Mike Marshall" <hubcap@omnibond.com>,
	xen-devel@lists.xenproject.org, devel@lists.orangefs.org,
	"Felipe Balbi" <balbi@kernel.org>,
	"Uma Krishnan" <ukrishn@linux.ibm.com>,
	"Manoj N. Kumar" <manoj@linux.ibm.com>,
	"Joel Becker" <jlbec@evilplan.org>,
	"Trond Myklebust" <trond.myklebust@hammerspace.com>,
	"Mike Marciniszyn" <mike.marciniszyn@intel.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Arve Hjønnevåg" <arve@android.com>,
	"Frederic Barrat" <fbarrat@linux.ibm.com>,
	"Martin Brandenburg" <martin@omnibond.com>,
	linux-ia64@vger.kernel.org, "David Airlie" <airlied@linux.ie>,
	virtualization@lists.linux-foundation.org,
	"Keith Busch" <keith.busch@intel.com>,
	"Masahiro Yamada" <yamada.masahiro@socionext.com>,
	"Jens Axboe" <axboe@kernel.dk>,
	"Christian Brauner" <christian.brauner@ubuntu.com>,
	"Matthew Garrett" <matthew.garrett@nebula.com>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	"Paul Moore" <paul@paul-moore.com>,
	"Andreas Schwab" <schwab@suse.de>,
	"Anton Vorontsov" <anton@enomsg.org>,
	"Hugh Dickins" <hughd@google.com>,
	"Christoph Hellwig" <hch@lst.de>, "Yonghong Song" <yhs@fb.com>,
	"Todd Kjos" <tkjos@android.com>,
	"Felipe Balbi" <felipe.balbi@linux.intel.com>,
	selinux@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	"Casey Schaufler" <casey@schaufler-ca.com>,
	"Boris Ostrovsky" <boris.ostrovsky@oracle.com>,
	"Nitin Gupta" <ngupta@vflare.org>,
	"Martijn Coenen" <maco@android.com>,
	"Tony Luck" <tony.luck@intel.com>,
	"Boris Brezillon" <bbrezillon@kernel.org>,
	"Dennis Dalessandro" <dennis.dalessandro@intel.com>,
	linux-nvdimm@lists.01.org, "Yan, Zheng" <zyan@redhat.com>,
	"Minchan Kim" <minchan@kernel.org>,
	"Eric W. Biederman" <ebiederm@xmission.com>,
	"Martin Schwidefsky" <schwidefsky@de.ibm.com>,
	"Martin KaFai Lau" <kafai@fb.com>,
	"Song Liu" <songliubraving@fb.com>,
	linux-efi@vger.kernel.org, linux-aio@kvack.org,
	"Jason Wang" <jasowang@redhat.com>,
	"Heiko Carstens" <heiko.carstens@de.ibm.com>,
	"Alexei Starovoitov" <ast@kernel.org>, "Chris Mason" <clm@fb.com>,
	linux-mtd@lists.infradead.org,
	"Joel Fernandes" <joel@joelfernandes.org>,
	"Dave Jiang" <dave.jiang@intel.com>,
	"Daniel Borkmann" <daniel@iogearbox.net>,
	"Miklos Szeredi" <miklos@szeredi.hu>,
	linux-rdma@vger.kernel.org, coda@cs.cmu.edu,
	"Andrew Price" <anprice@redhat.com>,
	"Ilya Dryomov" <idryomov@gmail.com>,
	"Stephen Smalley" <sds@tycho.nsa.gov>,
	"Fenghua Yu" <fenghua.yu@intel.com>,
	"Robert Richter" <rric@kernel.org>,
	"Kees Cook" <keescook@chromium.org>,
	"Arnd Bergmann" <arnd@arndb.de>,
	"James E.J. Bottomley" <jejb@linux.ibm.com>,
	"Steven Rostedt" <rostedt@goodmis.org>,
	"Eric Paris" <eparis@parisplace.org>,
	"Dan Williams" <dan.j.williams@intel.com>,
	"Christian Brauner" <christian@brauner.io>,
	"Jan Harkes" <jaharkes@cs.cmu.edu>,
	linux-nfs@vger.kernel.org,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	"Ard Biesheuvel" <ard.biesheuvel@linaro.org>,
	linux-s390@vger.kernel.org, "Jeff Layton" <jlayton@kernel.org>,
	"Jeremy Kerr" <jk@ozlabs.org>,
	"Andrew Donnellan" <andrew.donnellan@au1.ibm.com>,
	"Colin Cross" <ccross@android.com>,
	linux-fsdevel@vger.kernel.org, bpf@vger.kernel.org,
	"Brian Norris" <computersforpeace@gmail.com>,
	"Anna Schumaker" <anna.schumaker@netapp.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	dhowells@redhat.com, linux-mm@kvack.org,
	devel@driverdev.osuosl.org, "Sage Weil" <sage@redhat.com>,
	"Nicolas Pitre" <nico@linaro.org>,
	"Richard Weinberger" <richard@nod.at>,
	cluster-devel@redhat.com, "Marek Vasut" <marek.vasut@gmail.com>,
	oprofile-list@lists.sf.net, squashfs-devel@lists.sourceforge.net,
	"Matthew R. Ochs" <mrochs@linux.vnet.ibm.com>,
	apparmor@lists.ubuntu.com, "Josef Bacik" <josef@toxicpanda.com>,
	"Michał Nazarewicz" <mina86@mina86.com>,
	linux-block@vger.kernel.org, "David Sterba" <dsterba@suse.com>,
	"Juergen Gross" <jgross@suse.com>,
	"John Johansen" <john.johansen@canonical.com>,
	linux-scsi@vger.kernel.org,
	"Artem Bityutskiy" <dedekind1@gmail.com>,
	netdev@vger.kernel.org, "Adrian Hunter" <adrian.hunter@intel.com>,
	linux-security-module@vger.kernel.org,
	"Benjamin LaHaise" <bcrl@kvack.org>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Vishal Verma" <vishal.l.verma@intel.com>,
	"Phillip Lougher" <phillip@squashfs.org.uk>,
	"David Woodhouse" <dwmw2@infradead.org>,
	linux-btrfs@vger.kernel.org
Subject: [RFC PATCH 00/68] VFS: Convert a bunch of filesystems to the new mount API
Date: Wed, 27 Mar 2019 23:40:00 +0000	[thread overview]
Message-ID: <155372999953.7602.13784796495137723805.stgit@warthog.procyon.org.uk> (raw)


Hi Al,

Here's a set of patches that converts a bunch (but not yet all!) to the new
mount API.  To this end, it makes the following changes:

 (1) Provides a convenience member in struct fs_context that is OR'd into
     sb->s_iflags by sget_fc().

 (2) Provides a convenience helper function, vfs_init_pseudo_fs_context(),
     for doing most of the work in mounting a pseudo filesystem.

 (3) Provides a convenience helper function, vfs_get_block_super(), for
     doing the work in setting up a block-based superblock.

 (4) Improves the handling of fd-type parameters.

 (5) Moves some of the subtype handling int fuse.

 (6) Provides a convenience helper function, vfs_get_mtd_super(), for
     doing the work in setting up an MTD device-based superblock.

 (7) Kills off mount_pseudo(), mount_pseudo_xattr(), mount_ns(),
     sget_userns(), mount_mtd(), mount_single().

 (8) Converts a slew of filesystems to use the mount API.

 (9) Fixes a bug in hypfs.

The patches can be found here also:

	https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git

on branch:

	mount-api-viro

David
---
Andrew Price (1):
      gfs2: Convert gfs2 to fs_context

David Howells (66):
      vfs: Update mount API docs
      vfs: Fix refcounting of filenames in fs_parser
      vfs: Provide sb->s_iflags settings in fs_context struct
      vfs: Provide a mount_pseudo-replacement for the new mount API
      vfs: Convert aio to use the new mount API
      vfs: Convert anon_inodes to use the new mount API
      vfs: Convert bdev to use the new mount API
      vfs: Convert nsfs to use the new mount API
      vfs: Convert pipe to use the new mount API
      vfs: Convert zsmalloc to use the new mount API
      vfs: Convert sockfs to use the new mount API
      vfs: Convert dax to use the new mount API
      vfs: Convert drm to use the new mount API
      vfs: Convert ia64 perfmon to use the new mount API
      vfs: Convert cxl to use the new mount API
      vfs: Convert ocxlflash to use the new mount API
      vfs: Convert virtio_balloon to use the new mount API
      vfs: Convert btrfs_test to use the new mount API
      vfs: Kill off mount_pseudo() and mount_pseudo_xattr()
      vfs: Use sget_fc() for pseudo-filesystems
      vfs: Convert binderfs to use the new mount API
      vfs: Convert nfsctl to use the new mount API
      vfs: Convert rpc_pipefs to use the new mount API
      vfs: Kill mount_ns()
      vfs: Kill sget_userns()
      vfs: Convert binfmt_misc to use the new mount API
      vfs: Convert configfs to use the new mount API
      vfs: Convert efivarfs to use the new mount API
      vfs: Convert fusectl to use the new mount API
      vfs: Convert qib_fs/ipathfs to use the new mount API
      vfs: Convert ibmasmfs to use the new mount API
      vfs: Convert oprofilefs to use the new mount API
      vfs: Convert gadgetfs to use the new mount API
      vfs: Convert xenfs to use the new mount API
      vfs: Convert openpromfs to use the new mount API
      vfs: Convert apparmorfs to use the new mount API
      vfs: Convert securityfs to use the new mount API
      vfs: Convert selinuxfs to use the new mount API
      vfs: Convert smackfs to use the new mount API
      vfs: Convert ramfs, shmem, tmpfs, devtmpfs, rootfs to use the new mount API
      vfs: Create fs_context-aware mount_bdev() replacement
      vfs: Make fs_parse() handle fs_param_is_fd-type params better
      vfs: Convert fuse to use the new mount API
      vfs: Move the subtype parameter into fuse
      mtd: Provide fs_context-aware mount_mtd() replacement
      vfs: Convert romfs to use the new mount API
      vfs: Convert cramfs to use the new mount API
      vfs: Convert jffs2 to use the new mount API
      mtd: Kill mount_mtd()
      vfs: Convert squashfs to use the new mount API
      vfs: Convert ceph to use the new mount API
      vfs: Convert functionfs to use the new mount API
      vfs: Add a single-or-reconfig keying to vfs_get_super()
      vfs: Convert debugfs to use the new mount API
      vfs: Convert tracefs to use the new mount API
      vfs: Convert pstore to use the new mount API
      hypfs: Fix error number left in struct pointer member
      vfs: Convert hypfs to use the new mount API
      vfs: Convert spufs to use the new mount API
      vfs: Kill mount_single()
      vfs: Convert coda to use the new mount API
      vfs: Convert autofs to use the new mount API
      vfs: Convert devpts to use the new mount API
      vfs: Convert bpf to use the new mount API
      vfs: Convert ubifs to use the new mount API
      vfs: Convert orangefs to use the new mount API

Masahiro Yamada (1):
      kbuild: skip sub-make for in-tree build with GNU Make 4.x


 Documentation/filesystems/mount_api.txt   |  367 ++++++++-------
 Documentation/filesystems/vfs.txt         |    4 
 Makefile                                  |   31 +
 arch/ia64/kernel/perfmon.c                |   14 -
 arch/powerpc/platforms/cell/spufs/inode.c |  207 +++++----
 arch/s390/hypfs/inode.c                   |  137 +++---
 drivers/android/binderfs.c                |  173 ++++---
 drivers/base/devtmpfs.c                   |   16 -
 drivers/block/rbd.c                       |  363 ++++++++-------
 drivers/dax/super.c                       |   13 -
 drivers/gpu/drm/drm_drv.c                 |   14 -
 drivers/infiniband/hw/qib/qib_fs.c        |   26 +
 drivers/misc/cxl/api.c                    |   10 
 drivers/misc/ibmasm/ibmasmfs.c            |   21 +
 drivers/mtd/mtdcore.h                     |    1 
 drivers/mtd/mtdsuper.c                    |  181 ++++----
 drivers/oprofile/oprofilefs.c             |   20 +
 drivers/scsi/cxlflash/ocxl_hw.c           |   21 -
 drivers/usb/gadget/function/f_fs.c        |  233 +++++-----
 drivers/usb/gadget/legacy/inode.c         |   21 +
 drivers/virtio/virtio_balloon.c           |   19 -
 drivers/xen/xenfs/super.c                 |   21 +
 fs/aio.c                                  |   15 -
 fs/anon_inodes.c                          |   12 
 fs/autofs/autofs_i.h                      |   13 -
 fs/autofs/init.c                          |    9 
 fs/autofs/inode.c                         |  429 ++++++++++--------
 fs/binfmt_misc.c                          |   20 +
 fs/block_dev.c                            |   14 -
 fs/btrfs/tests/btrfs-tests.c              |   13 -
 fs/ceph/cache.c                           |    9 
 fs/ceph/cache.h                           |    5 
 fs/ceph/super.c                           |  697 ++++++++++++++---------------
 fs/ceph/super.h                           |    1 
 fs/coda/inode.c                           |  171 +++++--
 fs/configfs/mount.c                       |   20 +
 fs/cramfs/inode.c                         |   69 ++-
 fs/debugfs/inode.c                        |  186 ++++----
 fs/devpts/inode.c                         |  265 +++++------
 fs/efivarfs/super.c                       |   20 +
 fs/fs_context.c                           |   16 -
 fs/fs_parser.c                            |   18 +
 fs/fuse/control.c                         |   20 +
 fs/fuse/inode.c                           |  291 +++++++-----
 fs/gfs2/incore.h                          |    8 
 fs/gfs2/ops_fstype.c                      |  495 ++++++++++++++++-----
 fs/gfs2/super.c                           |  335 --------------
 fs/gfs2/super.h                           |    3 
 fs/jffs2/fs.c                             |   21 -
 fs/jffs2/os-linux.h                       |    4 
 fs/jffs2/super.c                          |  172 +++----
 fs/libfs.c                                |   91 +++-
 fs/nfsd/nfsctl.c                          |   33 +
 fs/nsfs.c                                 |   13 -
 fs/openpromfs/inode.c                     |   20 +
 fs/orangefs/orangefs-kernel.h             |    8 
 fs/orangefs/orangefs-mod.c                |    3 
 fs/orangefs/super.c                       |  186 ++++----
 fs/pipe.c                                 |   12 
 fs/pstore/inode.c                         |  109 +++--
 fs/ramfs/inode.c                          |  104 +++-
 fs/romfs/super.c                          |   46 +-
 fs/squashfs/super.c                       |  100 ++--
 fs/super.c                                |  301 ++++++-------
 fs/tracefs/inode.c                        |  180 +++----
 fs/ubifs/super.c                          |  447 ++++++++-----------
 include/linux/ceph/ceph_debug.h           |    1 
 include/linux/ceph/libceph.h              |   17 +
 include/linux/fs.h                        |   24 -
 include/linux/fs_context.h                |   20 +
 include/linux/mtd/super.h                 |    6 
 include/linux/ramfs.h                     |    6 
 include/linux/shmem_fs.h                  |    4 
 init/do_mounts.c                          |   12 
 kernel/bpf/inode.c                        |   92 ++--
 mm/shmem.c                                |  396 +++++++++++-----
 mm/zsmalloc.c                             |   19 -
 net/ceph/ceph_common.c                    |  410 +++++++----------
 net/socket.c                              |   14 -
 net/sunrpc/rpc_pipe.c                     |   34 +
 security/apparmor/apparmorfs.c            |   20 +
 security/inode.c                          |   21 +
 security/selinux/selinuxfs.c              |   20 +
 security/smack/smackfs.c                  |   34 +
 84 files changed, 4257 insertions(+), 3810 deletions(-)


             reply	other threads:[~2019-03-28  2:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-27 23:40 David Howells [this message]
2019-03-27 23:42 ` [RFC PATCH 16/68] vfs: Convert cxl to use the new mount API David Howells
2019-03-27 23:48 ` [RFC PATCH 60/68] vfs: Convert spufs " David Howells

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=155372999953.7602.13784796495137723805.stgit@warthog.procyon.org.uk \
    --to=dhowells@redhat.com \
    --cc=adrian.hunter@intel.com \
    --cc=airlied@linux.ie \
    --cc=andrew.donnellan@au1.ibm.com \
    --cc=anna.schumaker@netapp.com \
    --cc=anprice@redhat.com \
    --cc=anton@enomsg.org \
    --cc=apparmor@lists.ubuntu.com \
    --cc=ard.biesheuvel@linaro.org \
    --cc=arnd@arndb.de \
    --cc=arve@android.com \
    --cc=ast@kernel.org \
    --cc=axboe@kernel.dk \
    --cc=balbi@kernel.org \
    --cc=bbrezillon@kernel.org \
    --cc=bcrl@kvack.org \
    --cc=bfields@fieldses.org \
    --cc=boris.ostrovsky@oracle.com \
    --cc=bpf@vger.kernel.org \
    --cc=casey@schaufler-ca.com \
    --cc=ccross@android.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=christian.brauner@ubuntu.com \
    --cc=christian@brauner.io \
    --cc=clm@fb.com \
    --cc=cluster-devel@redhat.com \
    --cc=coda@cs.cmu.edu \
    --cc=computersforpeace@gmail.com \
    --cc=dan.j.williams@intel.com \
    --cc=daniel@ffwll.ch \
    --cc=daniel@iogearbox.net \
    --cc=dave.jiang@intel.com \
    --cc=dedekind1@gmail.com \
    --cc=dennis.dalessandro@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=devel@lists.orangefs.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=dsterba@suse.com \
    --cc=dwmw2@infradead.org \
    --cc=ebiederm@xmission.com \
    --cc=eparis@parisplace.org \
    --cc=fbarrat@linux.ibm.com \
    --cc=felipe.balbi@linux.intel.com \
    --cc=fenghua.yu@intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hch@lst.de \
    --cc=heiko.carstens@de.ibm.com \
    --cc=hubcap@omnibond.com \
    --cc=hughd@google.com \
    --cc=idryomov@gmail.com \
    --cc=jaharkes@cs.cmu.edu \
    --cc=jasowang@redhat.com \
    --cc=jejb@linux.ibm.com \
    --cc=jgross@suse.com \
    --cc=jk@ozlabs.org \
    --cc=jlayton@kernel.org \
    --cc=jlbec@evilplan.org \
    --cc=joel@joelfernandes.org \
    --cc=john.johansen@canonical.com \
    --cc=josef@toxicpanda.com \
    --cc=kafai@fb.com \
    --cc=keescook@chromium.org \
    --cc=keith.busch@intel.com \
    --cc=linux-aio@kvack.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=linux-nvdimm@lists.01.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maco@android.com \
    --cc=manoj@linux.ibm.com \
    --cc=marek.vasut@gmail.com \
    --cc=martin.petersen@oracle.com \
    --cc=martin@omnibond.com \
    --cc=matthew.garrett@nebula.com \
    --cc=mike.marciniszyn@intel.com \
    --cc=miklos@szeredi.hu \
    --cc=mina86@mina86.com \
    --cc=minchan@kernel.org \
    --cc=mrochs@linux.vnet.ibm.com \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=ngupta@vflare.org \
    --cc=nico@linaro.org \
    --cc=oprofile-list@lists.sf.net \
    --cc=paul@paul-moore.com \
    --cc=phillip@squashfs.org.uk \
    --cc=rafael@kernel.org \
    --cc=richard@nod.at \
    --cc=rostedt@goodmis.org \
    --cc=rric@kernel.org \
    --cc=sage@redhat.com \
    --cc=schwab@suse.de \
    --cc=schwidefsky@de.ibm.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@vger.kernel.org \
    --cc=sergey.senozhatsky.work@gmail.com \
    --cc=songliubraving@fb.com \
    --cc=squashfs-devel@lists.sourceforge.net \
    --cc=sstabellini@kernel.org \
    --cc=tkjos@android.com \
    --cc=tony.luck@intel.com \
    --cc=trond.myklebust@hammerspace.com \
    --cc=ukrishn@linux.ibm.com \
    --cc=viro@zeniv.linux.org.uk \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=vishal.l.verma@intel.com \
    --cc=xen-devel@lists.xenproject.org \
    --cc=yamada.masahiro@socionext.com \
    --cc=yhs@fb.com \
    --cc=zyan@redhat.com \
    /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