History

Merge branch 'work.mount2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

Pull misc mount API conversions from Al Viro: "Conversions to new API for shmem and friends and for mount_mtd()-using filesystems. As for the rest of the mount API conversions in -next, some of them belong in the individual trees (e.g. binderfs one should definitely go through android folks, after getting redone on top of their changes). I'm going to drop those and send the rest (trivial ones + stuff ACKed by maintainers) in a separate series - by that point they are independent from each other. Some stuff has already migrated into individual trees (NFS conversion, for example, or FUSE stuff, etc.); those presumably will go through the regular merges from corresponding trees." * 'work.mount2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: vfs: Make fs_parse() handle fs_param_is_fd-type params better vfs: Convert ramfs, shmem, tmpfs, devtmpfs, rootfs to use the new mount API shmem_parse_one(): switch to use of fs_parse() shmem_parse_options(): take handling a single option into a helper shmem_parse_options(): don't bother with mpol in separate variable shmem_parse_options(): use a separate structure to keep the results make shmem_fill_super() static make ramfs_fill_super() static devtmpfs: don't mix {ramfs,shmem}_fill_super() with mount_single() vfs: Convert squashfs to use the new mount API mtd: Kill mount_mtd() vfs: Convert jffs2 to use the new mount API vfs: Convert cramfs to use the new mount API vfs: Convert romfs to use the new mount API vfs: Add a single-or-reconfig keying to vfs_get_super()

Linus Torvalds committed 7 years ago

Commit bc7d9ae2 parents cfb82e1 74983ac17 files · +609 −594Browse files

Showing the changes to include/linux (4 of 17 files). Show all

Unified · Split

4 files
  1. include/linux/fs_context.h +4 −0
  2. include/linux/mtd/super.h +0 −3
  3. include/linux/ramfs.h +2 −4
  4. include/linux/shmem_fs.h +2 −1
include/linux/fs_context.h+4−0
@@ -141,6 +141,7 @@ extern void put_fs_context(struct fs_context *fc); · 140 unmodified lines
141141 */
142142 enum vfs_get_super_keying {
143143 vfs_get_single_super, /* Only one such superblock may exist */
144+ vfs_get_single_reconf_super, /* As above, but reconfigure if it exists */
144145 vfs_get_keyed_super, /* Superblocks with different s_fs_info keys may exist */
145146 vfs_get_independent_super, /* Multiple independent superblocks may exist */
146147 };
@@ -155,6 +156,9 @@ extern int get_tree_nodev(struct fs_context *fc, · 8 unmodified lines
155156 extern int get_tree_single(struct fs_context *fc,
156157 int (*fill_super)(struct super_block *sb,
157158 struct fs_context *fc));
159+extern int get_tree_single_reconf(struct fs_context *fc,
160+ int (*fill_super)(struct super_block *sb,
161+ struct fs_context *fc));
158162 extern int get_tree_keyed(struct fs_context *fc,
159163 int (*fill_super)(struct super_block *sb,
160164 struct fs_context *fc),
include/linux/mtd/super.h+0−3
@@ -17,9 +17,6 @@ · 16 unmodified lines
1717 extern int get_tree_mtd(struct fs_context *fc,
1818 int (*fill_super)(struct super_block *sb,
1919 struct fs_context *fc));
20−extern struct dentry *mount_mtd(struct file_system_type *fs_type, int flags,
21− const char *dev_name, void *data,
22− int (*fill_super)(struct super_block *, void *, int));
2320 extern void kill_mtd_super(struct super_block *sb);
2421
2522
include/linux/ramfs.h+2−4
@@ -4,8 +4,7 @@ · 3 unmodified lines
44
55 struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir,
66 umode_t mode, dev_t dev);
7−extern struct dentry *ramfs_mount(struct file_system_type *fs_type,
8− int flags, const char *dev_name, void *data);
7+extern int ramfs_init_fs_context(struct fs_context *fc);
98
109 #ifdef CONFIG_MMU
1110 static inline int
@@ -17,9 +16,8 @@ ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize) · 5 unmodified lines
1716 extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
1817 #endif
1918
19+extern const struct fs_parameter_description ramfs_fs_parameters;
2020 extern const struct file_operations ramfs_file_operations;
2121 extern const struct vm_operations_struct generic_file_vm_ops;
2222
23−int ramfs_fill_super(struct super_block *sb, void *data, int silent);
24−
2523 #endif
include/linux/shmem_fs.h+2−1
@@ -49,8 +49,9 @@ static inline struct shmem_inode_info *SHMEM_I(struct inode *inode) · 48 unmodified lines
4949 /*
5050 * Functions in mm/shmem.c called directly from elsewhere:
5151 */
52+extern const struct fs_parameter_description shmem_fs_parameters;
5253 extern int shmem_init(void);
53−extern int shmem_fill_super(struct super_block *sb, void *data, int silent);
54+extern int shmem_init_fs_context(struct fs_context *fc);
5455 extern struct file *shmem_file_setup(const char *name,
5556 loff_t size, unsigned long flags);
5657 extern struct file *shmem_kernel_file_setup(const char *name, loff_t size,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t