diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-10-15 00:38:00 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-10-15 00:38:00 -0400 |
commit | f175f307dd0bd1ca3825d244f9b870ff12981d3c (patch) | |
tree | 5579e9ca5080966ee73b82053fe154e7a354b1cb /include/linux/fs.h | |
parent | 53fd88ab61948f711147204c1c5017c7301979e9 (diff) |
stubs for mount_bdev() and kill_block_super() in !CONFIG_BLOCK case
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 89323e03e648..31f8b2ea358c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2094,9 +2094,18 @@ struct file_system_type { | |||
2094 | extern struct dentry *mount_ns(struct file_system_type *fs_type, | 2094 | extern struct dentry *mount_ns(struct file_system_type *fs_type, |
2095 | int flags, void *data, void *ns, struct user_namespace *user_ns, | 2095 | int flags, void *data, void *ns, struct user_namespace *user_ns, |
2096 | int (*fill_super)(struct super_block *, void *, int)); | 2096 | int (*fill_super)(struct super_block *, void *, int)); |
2097 | #ifdef CONFIG_BLOCK | ||
2097 | extern struct dentry *mount_bdev(struct file_system_type *fs_type, | 2098 | extern struct dentry *mount_bdev(struct file_system_type *fs_type, |
2098 | int flags, const char *dev_name, void *data, | 2099 | int flags, const char *dev_name, void *data, |
2099 | int (*fill_super)(struct super_block *, void *, int)); | 2100 | int (*fill_super)(struct super_block *, void *, int)); |
2101 | #else | ||
2102 | static inline struct dentry *mount_bdev(struct file_system_type *fs_type, | ||
2103 | int flags, const char *dev_name, void *data, | ||
2104 | int (*fill_super)(struct super_block *, void *, int)) | ||
2105 | { | ||
2106 | return ERR_PTR(-ENODEV); | ||
2107 | } | ||
2108 | #endif | ||
2100 | extern struct dentry *mount_single(struct file_system_type *fs_type, | 2109 | extern struct dentry *mount_single(struct file_system_type *fs_type, |
2101 | int flags, void *data, | 2110 | int flags, void *data, |
2102 | int (*fill_super)(struct super_block *, void *, int)); | 2111 | int (*fill_super)(struct super_block *, void *, int)); |
@@ -2105,7 +2114,14 @@ extern struct dentry *mount_nodev(struct file_system_type *fs_type, | |||
2105 | int (*fill_super)(struct super_block *, void *, int)); | 2114 | int (*fill_super)(struct super_block *, void *, int)); |
2106 | extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path); | 2115 | extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path); |
2107 | void generic_shutdown_super(struct super_block *sb); | 2116 | void generic_shutdown_super(struct super_block *sb); |
2117 | #ifdef CONFIG_BLOCK | ||
2108 | void kill_block_super(struct super_block *sb); | 2118 | void kill_block_super(struct super_block *sb); |
2119 | #else | ||
2120 | static inline void kill_block_super(struct super_block *sb) | ||
2121 | { | ||
2122 | BUG(); | ||
2123 | } | ||
2124 | #endif | ||
2109 | void kill_anon_super(struct super_block *sb); | 2125 | void kill_anon_super(struct super_block *sb); |
2110 | void kill_litter_super(struct super_block *sb); | 2126 | void kill_litter_super(struct super_block *sb); |
2111 | void deactivate_super(struct super_block *sb); | 2127 | void deactivate_super(struct super_block *sb); |