]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 12 Mar 2019 21:08:19 +0000 (14:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 12 Mar 2019 21:08:19 +0000 (14:08 -0700)
Pull vfs mount infrastructure updates from Al Viro:
 "The rest of core infrastructure; no new syscalls in that pile, but the
  old parts are switched to new infrastructure. At that point
  conversions of individual filesystems can happen independently; some
  are done here (afs, cgroup, procfs, etc.), there's also a large series
  outside of that pile dealing with NFS (quite a bit of option-parsing
  stuff is getting used there - it's one of the most convoluted
  filesystems in terms of mount-related logics), but NFS bits are the
  next cycle fodder.

  It got seriously simplified since the last cycle; documentation is
  probably the weakest bit at the moment - I considered dropping the
  commit introducing Documentation/filesystems/mount_api.txt (cutting
  the size increase by quarter ;-), but decided that it would be better
  to fix it up after -rc1 instead.

  That pile allows to do followup work in independent branches, which
  should make life much easier for the next cycle. fs/super.c size
  increase is unpleasant; there's a followup series that allows to
  shrink it considerably, but I decided to leave that until the next
  cycle"

* 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (41 commits)
  afs: Use fs_context to pass parameters over automount
  afs: Add fs_context support
  vfs: Add some logging to the core users of the fs_context log
  vfs: Implement logging through fs_context
  vfs: Provide documentation for new mount API
  vfs: Remove kern_mount_data()
  hugetlbfs: Convert to fs_context
  cpuset: Use fs_context
  kernfs, sysfs, cgroup, intel_rdt: Support fs_context
  cgroup: store a reference to cgroup_ns into cgroup_fs_context
  cgroup1_get_tree(): separate "get cgroup_root to use" into a separate helper
  cgroup_do_mount(): massage calling conventions
  cgroup: stash cgroup_root reference into cgroup_fs_context
  cgroup2: switch to option-by-option parsing
  cgroup1: switch to option-by-option parsing
  cgroup: take options parsing into ->parse_monolithic()
  cgroup: fold cgroup1_mount() into cgroup1_get_tree()
  cgroup: start switching to fs_context
  ipc: Convert mqueue fs to fs_context
  proc: Add fs_context support to procfs
  ...

22 files changed:
1  2 
fs/Kconfig
fs/Makefile
fs/afs/super.c
fs/hugetlbfs/inode.c
fs/kernfs/kernfs-internal.h
fs/kernfs/mount.c
fs/namei.c
fs/namespace.c
fs/proc/internal.h
fs/proc/root.c
include/linux/fs.h
include/linux/kernfs.h
include/linux/lsm_hooks.h
include/linux/security.h
ipc/mqueue.c
kernel/cgroup/cgroup.c
kernel/cgroup/cpuset.c
security/security.c
security/selinux/hooks.c
security/selinux/include/security.h
security/smack/smack.h
security/smack/smack_lsm.c

diff --cc fs/Kconfig
Simple merge
diff --cc fs/Makefile
index 7bff9abecfa437388e7974dc10ce3699124489d5,9a0b8003f06951d0e7dfb81a65f6ad6229aef482..427fec226faebf93e74bbbd95445c476c9871655
@@@ -13,7 -13,7 +13,7 @@@ obj-y :=      open.o read_write.o file_table
                seq_file.o xattr.o libfs.o fs-writeback.o \
                pnode.o splice.o sync.o utimes.o d_path.o \
                stack.o fs_struct.o statfs.o fs_pin.o nsfs.o \
-               fs_types.o
 -              fs_context.o fs_parser.o
++              fs_types.o fs_context.o fs_parser.o
  
  ifeq ($(CONFIG_BLOCK),y)
  obj-y +=      buffer.o block_dev.o direct-io.o mpage.o
diff --cc fs/afs/super.c
Simple merge
Simple merge
Simple merge
index f3ac352699cfb58f201ab9b27beeb59838e62ab9,36376cc5c9c2111621ec6acab1fb2d0ee26dbd0d..9a4646eecb71bbaababa17828ebde0d5f9bbd700
  
  #include "kernfs-internal.h"
  
 -struct kmem_cache *kernfs_node_cache;
 +struct kmem_cache *kernfs_node_cache, *kernfs_iattrs_cache;
  
- static int kernfs_sop_remount_fs(struct super_block *sb, int *flags, char *data)
- {
-       struct kernfs_root *root = kernfs_info(sb)->root;
-       struct kernfs_syscall_ops *scops = root->syscall_ops;
-       if (scops && scops->remount_fs)
-               return scops->remount_fs(root, flags, data);
-       return 0;
- }
  static int kernfs_sop_show_options(struct seq_file *sf, struct dentry *dentry)
  {
        struct kernfs_root *root = kernfs_root(kernfs_dentry_node(dentry));
diff --cc fs/namei.c
Simple merge
diff --cc fs/namespace.c
Simple merge
Simple merge
diff --cc fs/proc/root.c
index 621e6ec322ca93032d915519717f995abfeaf266,6927b29ece762554ecc9b29e002222f5cc3138b0..8b145e7b96614a8da1f5df306fae771539a613a3
@@@ -154,9 -247,9 +247,9 @@@ static int proc_root_getattr(const stru
  
  static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags)
  {
 -      if (!proc_pid_lookup(dir, dentry, flags))
 +      if (!proc_pid_lookup(dentry, flags))
                return NULL;
-       
        return proc_lookup(dir, dentry, flags);
  }
  
Simple merge
index 0cac1207bb00ae4add9a6435da4a15b80702ea40,822a64e65b4152925bf6baa7748c8a740cce34b3..c8893f6634705eb8da4795455ce67820ae98d7e4
@@@ -25,8 -25,9 +25,10 @@@ struct seq_file
  struct vm_area_struct;
  struct super_block;
  struct file_system_type;
 +struct poll_table_struct;
+ struct fs_context;
  
+ struct kernfs_fs_context;
  struct kernfs_open_node;
  struct kernfs_iattrs;
  
Simple merge
index 2b35a43d11d63b1f8c917150216c51e7991390f3,f28a1ebfd78e5633e213eb024a98e300a0203ce0..49f2685324b09eae63640838dc7cfe83dd2463f3
@@@ -53,15 -53,15 +53,18 @@@ struct msg_msg
  struct xattr;
  struct xfrm_sec_ctx;
  struct mm_struct;
+ struct fs_context;
+ struct fs_parameter;
+ enum fs_value_type;
  
 +/* Default (no) options for the capable function */
 +#define CAP_OPT_NONE 0x0
  /* If capable should audit the security request */
 -#define SECURITY_CAP_NOAUDIT 0
 -#define SECURITY_CAP_AUDIT 1
 +#define CAP_OPT_NOAUDIT BIT(1)
 +/* If capable is being called by a setid function */
 +#define CAP_OPT_INSETID BIT(2)
  
- /* LSM Agnostic defines for sb_set_mnt_opts */
+ /* LSM Agnostic defines for fs_context::lsm_flags */
  #define SECURITY_LSM_NATIVE_LABELS    1
  
  struct ctl_table;
diff --cc ipc/mqueue.c
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge