Skip to content

Commit 59df85d

Browse files
author
Al Viro
committed
linux/mount.h: trim includes
Signed-off-by: Al Viro <[email protected]>
1 parent a5f85d7 commit 59df85d

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

include/linux/mount.h

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@
1111
#define _LINUX_MOUNT_H
1212

1313
#include <linux/types.h>
14-
#include <linux/list.h>
15-
#include <linux/nodemask.h>
16-
#include <linux/spinlock.h>
17-
#include <linux/seqlock.h>
18-
#include <linux/atomic.h>
14+
#include <asm/barrier.h>
1915

2016
struct super_block;
21-
struct vfsmount;
2217
struct dentry;
23-
struct mnt_namespace;
18+
struct user_namespace;
19+
struct file_system_type;
2420
struct fs_context;
21+
struct file;
22+
struct path;
2523

2624
#define MNT_NOSUID 0x01
2725
#define MNT_NODEV 0x02
@@ -81,9 +79,6 @@ static inline struct user_namespace *mnt_user_ns(const struct vfsmount *mnt)
8179
return smp_load_acquire(&mnt->mnt_userns);
8280
}
8381

84-
struct file; /* forward dec */
85-
struct path;
86-
8782
extern int mnt_want_write(struct vfsmount *mnt);
8883
extern int mnt_want_write_file(struct file *file);
8984
extern void mnt_drop_write(struct vfsmount *mnt);
@@ -94,12 +89,10 @@ extern struct vfsmount *mnt_clone_internal(const struct path *path);
9489
extern bool __mnt_is_readonly(struct vfsmount *mnt);
9590
extern bool mnt_may_suid(struct vfsmount *mnt);
9691

97-
struct path;
9892
extern struct vfsmount *clone_private_mount(const struct path *path);
9993
extern int __mnt_want_write(struct vfsmount *);
10094
extern void __mnt_drop_write(struct vfsmount *);
10195

102-
struct file_system_type;
10396
extern struct vfsmount *fc_mount(struct fs_context *fc);
10497
extern struct vfsmount *vfs_create_mount(struct fs_context *fc);
10598
extern struct vfsmount *vfs_kern_mount(struct file_system_type *type,

0 commit comments

Comments
 (0)