diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/fs.h | 21 | ||||
| -rw-r--r-- | include/linux/mtd/super.h | 5 | ||||
| -rw-r--r-- | include/linux/ramfs.h | 4 |
3 files changed, 19 insertions, 11 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 1c73b50e81ff..4d07902bc50c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -1772,6 +1772,8 @@ struct file_system_type { | |||
| 1772 | int fs_flags; | 1772 | int fs_flags; |
| 1773 | int (*get_sb) (struct file_system_type *, int, | 1773 | int (*get_sb) (struct file_system_type *, int, |
| 1774 | const char *, void *, struct vfsmount *); | 1774 | const char *, void *, struct vfsmount *); |
| 1775 | struct dentry *(*mount) (struct file_system_type *, int, | ||
| 1776 | const char *, void *); | ||
| 1775 | void (*kill_sb) (struct super_block *); | 1777 | void (*kill_sb) (struct super_block *); |
| 1776 | struct module *owner; | 1778 | struct module *owner; |
| 1777 | struct file_system_type * next; | 1779 | struct file_system_type * next; |
| @@ -1787,17 +1789,25 @@ struct file_system_type { | |||
| 1787 | struct lock_class_key i_alloc_sem_key; | 1789 | struct lock_class_key i_alloc_sem_key; |
| 1788 | }; | 1790 | }; |
| 1789 | 1791 | ||
| 1790 | extern int get_sb_ns(struct file_system_type *fs_type, int flags, void *data, | 1792 | extern struct dentry *mount_ns(struct file_system_type *fs_type, int flags, |
| 1791 | int (*fill_super)(struct super_block *, void *, int), | 1793 | void *data, int (*fill_super)(struct super_block *, void *, int)); |
| 1792 | struct vfsmount *mnt); | 1794 | extern struct dentry *mount_bdev(struct file_system_type *fs_type, |
| 1795 | int flags, const char *dev_name, void *data, | ||
| 1796 | int (*fill_super)(struct super_block *, void *, int)); | ||
| 1793 | extern int get_sb_bdev(struct file_system_type *fs_type, | 1797 | extern int get_sb_bdev(struct file_system_type *fs_type, |
| 1794 | int flags, const char *dev_name, void *data, | 1798 | int flags, const char *dev_name, void *data, |
| 1795 | int (*fill_super)(struct super_block *, void *, int), | 1799 | int (*fill_super)(struct super_block *, void *, int), |
| 1796 | struct vfsmount *mnt); | 1800 | struct vfsmount *mnt); |
| 1801 | extern struct dentry *mount_single(struct file_system_type *fs_type, | ||
| 1802 | int flags, void *data, | ||
| 1803 | int (*fill_super)(struct super_block *, void *, int)); | ||
| 1797 | extern int get_sb_single(struct file_system_type *fs_type, | 1804 | extern int get_sb_single(struct file_system_type *fs_type, |
| 1798 | int flags, void *data, | 1805 | int flags, void *data, |
| 1799 | int (*fill_super)(struct super_block *, void *, int), | 1806 | int (*fill_super)(struct super_block *, void *, int), |
| 1800 | struct vfsmount *mnt); | 1807 | struct vfsmount *mnt); |
| 1808 | extern struct dentry *mount_nodev(struct file_system_type *fs_type, | ||
| 1809 | int flags, void *data, | ||
| 1810 | int (*fill_super)(struct super_block *, void *, int)); | ||
| 1801 | extern int get_sb_nodev(struct file_system_type *fs_type, | 1811 | extern int get_sb_nodev(struct file_system_type *fs_type, |
| 1802 | int flags, void *data, | 1812 | int flags, void *data, |
| 1803 | int (*fill_super)(struct super_block *, void *, int), | 1813 | int (*fill_super)(struct super_block *, void *, int), |
| @@ -1813,9 +1823,8 @@ struct super_block *sget(struct file_system_type *type, | |||
| 1813 | int (*test)(struct super_block *,void *), | 1823 | int (*test)(struct super_block *,void *), |
| 1814 | int (*set)(struct super_block *,void *), | 1824 | int (*set)(struct super_block *,void *), |
| 1815 | void *data); | 1825 | void *data); |
| 1816 | extern int get_sb_pseudo(struct file_system_type *, char *, | 1826 | extern struct dentry *mount_pseudo(struct file_system_type *, char *, |
| 1817 | const struct super_operations *ops, unsigned long, | 1827 | const struct super_operations *ops, unsigned long); |
| 1818 | struct vfsmount *mnt); | ||
| 1819 | extern void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb); | 1828 | extern void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb); |
| 1820 | 1829 | ||
| 1821 | static inline void sb_mark_dirty(struct super_block *sb) | 1830 | static inline void sb_mark_dirty(struct super_block *sb) |
diff --git a/include/linux/mtd/super.h b/include/linux/mtd/super.h index 4016dd6fe336..f456230f9330 100644 --- a/include/linux/mtd/super.h +++ b/include/linux/mtd/super.h | |||
| @@ -18,10 +18,9 @@ | |||
| 18 | #include <linux/fs.h> | 18 | #include <linux/fs.h> |
| 19 | #include <linux/mount.h> | 19 | #include <linux/mount.h> |
| 20 | 20 | ||
| 21 | extern int get_sb_mtd(struct file_system_type *fs_type, int flags, | 21 | extern struct dentry *mount_mtd(struct file_system_type *fs_type, int flags, |
| 22 | const char *dev_name, void *data, | 22 | const char *dev_name, void *data, |
| 23 | int (*fill_super)(struct super_block *, void *, int), | 23 | int (*fill_super)(struct super_block *, void *, int)); |
| 24 | struct vfsmount *mnt); | ||
| 25 | extern void kill_mtd_super(struct super_block *sb); | 24 | extern void kill_mtd_super(struct super_block *sb); |
| 26 | 25 | ||
| 27 | 26 | ||
diff --git a/include/linux/ramfs.h b/include/linux/ramfs.h index e7320b5e82fb..3a8f0c9b2933 100644 --- a/include/linux/ramfs.h +++ b/include/linux/ramfs.h | |||
| @@ -3,8 +3,8 @@ | |||
| 3 | 3 | ||
| 4 | struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir, | 4 | struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir, |
| 5 | int mode, dev_t dev); | 5 | int mode, dev_t dev); |
| 6 | extern int ramfs_get_sb(struct file_system_type *fs_type, | 6 | extern struct dentry *ramfs_mount(struct file_system_type *fs_type, |
| 7 | int flags, const char *dev_name, void *data, struct vfsmount *mnt); | 7 | int flags, const char *dev_name, void *data); |
| 8 | 8 | ||
| 9 | #ifndef CONFIG_MMU | 9 | #ifndef CONFIG_MMU |
| 10 | extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize); | 10 | extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize); |
