|
@@ -2098,9 +2098,18 @@ struct file_system_type {
|
|
extern struct dentry *mount_ns(struct file_system_type *fs_type,
|
|
extern struct dentry *mount_ns(struct file_system_type *fs_type,
|
|
int flags, void *data, void *ns, struct user_namespace *user_ns,
|
|
int flags, void *data, void *ns, struct user_namespace *user_ns,
|
|
int (*fill_super)(struct super_block *, void *, int));
|
|
int (*fill_super)(struct super_block *, void *, int));
|
|
|
|
+#ifdef CONFIG_BLOCK
|
|
extern struct dentry *mount_bdev(struct file_system_type *fs_type,
|
|
extern struct dentry *mount_bdev(struct file_system_type *fs_type,
|
|
int flags, const char *dev_name, void *data,
|
|
int flags, const char *dev_name, void *data,
|
|
int (*fill_super)(struct super_block *, void *, int));
|
|
int (*fill_super)(struct super_block *, void *, int));
|
|
|
|
+#else
|
|
|
|
+static inline struct dentry *mount_bdev(struct file_system_type *fs_type,
|
|
|
|
+ int flags, const char *dev_name, void *data,
|
|
|
|
+ int (*fill_super)(struct super_block *, void *, int))
|
|
|
|
+{
|
|
|
|
+ return ERR_PTR(-ENODEV);
|
|
|
|
+}
|
|
|
|
+#endif
|
|
extern struct dentry *mount_single(struct file_system_type *fs_type,
|
|
extern struct dentry *mount_single(struct file_system_type *fs_type,
|
|
int flags, void *data,
|
|
int flags, void *data,
|
|
int (*fill_super)(struct super_block *, void *, int));
|
|
int (*fill_super)(struct super_block *, void *, int));
|
|
@@ -2109,7 +2118,14 @@ extern struct dentry *mount_nodev(struct file_system_type *fs_type,
|
|
int (*fill_super)(struct super_block *, void *, int));
|
|
int (*fill_super)(struct super_block *, void *, int));
|
|
extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path);
|
|
extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path);
|
|
void generic_shutdown_super(struct super_block *sb);
|
|
void generic_shutdown_super(struct super_block *sb);
|
|
|
|
+#ifdef CONFIG_BLOCK
|
|
void kill_block_super(struct super_block *sb);
|
|
void kill_block_super(struct super_block *sb);
|
|
|
|
+#else
|
|
|
|
+static inline void kill_block_super(struct super_block *sb)
|
|
|
|
+{
|
|
|
|
+ BUG();
|
|
|
|
+}
|
|
|
|
+#endif
|
|
void kill_anon_super(struct super_block *sb);
|
|
void kill_anon_super(struct super_block *sb);
|
|
void kill_litter_super(struct super_block *sb);
|
|
void kill_litter_super(struct super_block *sb);
|
|
void deactivate_super(struct super_block *sb);
|
|
void deactivate_super(struct super_block *sb);
|
|
@@ -2173,7 +2189,6 @@ extern int iterate_mounts(int (*)(struct vfsmount *, void *), void *,
|
|
extern int vfs_statfs(const struct path *, struct kstatfs *);
|
|
extern int vfs_statfs(const struct path *, struct kstatfs *);
|
|
extern int user_statfs(const char __user *, struct kstatfs *);
|
|
extern int user_statfs(const char __user *, struct kstatfs *);
|
|
extern int fd_statfs(int, struct kstatfs *);
|
|
extern int fd_statfs(int, struct kstatfs *);
|
|
-extern int vfs_ustat(dev_t, struct kstatfs *);
|
|
|
|
extern int freeze_super(struct super_block *super);
|
|
extern int freeze_super(struct super_block *super);
|
|
extern int thaw_super(struct super_block *super);
|
|
extern int thaw_super(struct super_block *super);
|
|
extern bool our_mnt(struct vfsmount *mnt);
|
|
extern bool our_mnt(struct vfsmount *mnt);
|