Skip to content

Commit 70f8d9c

Browse files
author
Al Viro
committed
move mount-related externs from fs.h to mount.h
Signed-off-by: Al Viro <[email protected]>
1 parent 279b192 commit 70f8d9c

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

arch/alpha/kernel/osf_sys.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <linux/types.h>
3737
#include <linux/ipc.h>
3838
#include <linux/namei.h>
39+
#include <linux/mount.h>
3940
#include <linux/uio.h>
4041
#include <linux/vfs.h>
4142
#include <linux/rcupdate.h>

include/linux/fs.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2461,22 +2461,11 @@ struct super_block *sget(struct file_system_type *type,
24612461

24622462
extern int register_filesystem(struct file_system_type *);
24632463
extern int unregister_filesystem(struct file_system_type *);
2464-
extern struct vfsmount *kern_mount(struct file_system_type *);
2465-
extern void kern_unmount(struct vfsmount *mnt);
2466-
extern int may_umount_tree(struct vfsmount *);
2467-
extern int may_umount(struct vfsmount *);
2468-
extern long do_mount(const char *, const char __user *,
2469-
const char *, unsigned long, void *);
2470-
extern struct vfsmount *collect_mounts(const struct path *);
2471-
extern void drop_collected_mounts(struct vfsmount *);
2472-
extern int iterate_mounts(int (*)(struct vfsmount *, void *), void *,
2473-
struct vfsmount *);
24742464
extern int vfs_statfs(const struct path *, struct kstatfs *);
24752465
extern int user_statfs(const char __user *, struct kstatfs *);
24762466
extern int fd_statfs(int, struct kstatfs *);
24772467
extern int freeze_super(struct super_block *super);
24782468
extern int thaw_super(struct super_block *super);
2479-
extern bool our_mnt(struct vfsmount *mnt);
24802469
extern __printf(2, 3)
24812470
int super_setup_bdi_name(struct super_block *sb, char *fmt, ...);
24822471
extern int super_setup_bdi(struct super_block *sb);

include/linux/mount.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ extern void mark_mounts_for_expiry(struct list_head *mounts);
108108
extern dev_t name_to_dev_t(const char *name);
109109
extern bool path_is_mountpoint(const struct path *path);
110110

111+
extern bool our_mnt(struct vfsmount *mnt);
112+
113+
extern struct vfsmount *kern_mount(struct file_system_type *);
114+
extern void kern_unmount(struct vfsmount *mnt);
115+
extern int may_umount_tree(struct vfsmount *);
116+
extern int may_umount(struct vfsmount *);
117+
extern long do_mount(const char *, const char __user *,
118+
const char *, unsigned long, void *);
119+
extern struct vfsmount *collect_mounts(const struct path *);
120+
extern void drop_collected_mounts(struct vfsmount *);
121+
extern int iterate_mounts(int (*)(struct vfsmount *, void *), void *,
122+
struct vfsmount *);
111123
extern void kern_unmount_array(struct vfsmount *mnt[], unsigned int num);
112124

113125
#endif /* _LINUX_MOUNT_H */

security/smack/smackfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <linux/ctype.h>
2424
#include <linux/audit.h>
2525
#include <linux/magic.h>
26+
#include <linux/mount.h>
2627
#include <linux/fs_context.h>
2728
#include "smack.h"
2829

0 commit comments

Comments
 (0)