Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Get rid of indirect include of fs_struct.h

Don't pull it in sched.h; very few files actually need it and those
can include directly. sched.h itself only needs forward declaration
of struct fs_struct;

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 5ad4e53b ce3b0f8d

+20 -2
-1
arch/cris/kernel/process.c
··· 19 19 #include <asm/system.h> 20 20 #include <linux/module.h> 21 21 #include <linux/spinlock.h> 22 - #include <linux/fs_struct.h> 23 22 #include <linux/init_task.h> 24 23 #include <linux/sched.h> 25 24 #include <linux/fs.h>
+1
fs/dcache.c
··· 32 32 #include <linux/seqlock.h> 33 33 #include <linux/swap.h> 34 34 #include <linux/bootmem.h> 35 + #include <linux/fs_struct.h> 35 36 #include "internal.h" 36 37 37 38 int sysctl_vfs_cache_pressure __read_mostly = 100;
+1
fs/exec.c
··· 53 53 #include <linux/tracehook.h> 54 54 #include <linux/kmod.h> 55 55 #include <linux/fsnotify.h> 56 + #include <linux/fs_struct.h> 56 57 57 58 #include <asm/uaccess.h> 58 59 #include <asm/mmu_context.h>
+1
fs/fs_struct.c
··· 3 3 #include <linux/fs.h> 4 4 #include <linux/path.h> 5 5 #include <linux/slab.h> 6 + #include <linux/fs_struct.h> 6 7 7 8 /* 8 9 * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values.
+1
fs/namei.c
··· 32 32 #include <linux/file.h> 33 33 #include <linux/fcntl.h> 34 34 #include <linux/device_cgroup.h> 35 + #include <linux/fs_struct.h> 35 36 #include <asm/uaccess.h> 36 37 37 38 #define ACC_MODE(x) ("\000\004\002\006"[(x)&O_ACCMODE])
+1
fs/namespace.c
··· 27 27 #include <linux/ramfs.h> 28 28 #include <linux/log2.h> 29 29 #include <linux/idr.h> 30 + #include <linux/fs_struct.h> 30 31 #include <asm/uaccess.h> 31 32 #include <asm/unistd.h> 32 33 #include "pnode.h"
+1
fs/open.c
··· 29 29 #include <linux/rcupdate.h> 30 30 #include <linux/audit.h> 31 31 #include <linux/falloc.h> 32 + #include <linux/fs_struct.h> 32 33 33 34 int vfs_statfs(struct dentry *dentry, struct kstatfs *buf) 34 35 {
+1
fs/proc/base.c
··· 80 80 #include <linux/oom.h> 81 81 #include <linux/elf.h> 82 82 #include <linux/pid_namespace.h> 83 + #include <linux/fs_struct.h> 83 84 #include "internal.h" 84 85 85 86 /* NOTE:
+1
fs/proc/task_nommu.c
··· 2 2 #include <linux/mm.h> 3 3 #include <linux/file.h> 4 4 #include <linux/fdtable.h> 5 + #include <linux/fs_struct.h> 5 6 #include <linux/mount.h> 6 7 #include <linux/ptrace.h> 7 8 #include <linux/seq_file.h>
+2
include/linux/mnt_namespace.h
··· 22 22 int event; 23 23 }; 24 24 25 + struct fs_struct; 26 + 25 27 extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *, 26 28 struct fs_struct *); 27 29 extern void __put_mnt_ns(struct mnt_namespace *ns);
+1
include/linux/nsproxy.h
··· 8 8 struct uts_namespace; 9 9 struct ipc_namespace; 10 10 struct pid_namespace; 11 + struct fs_struct; 11 12 12 13 /* 13 14 * A structure to contain pointers to all per-process
+2 -1
include/linux/sched.h
··· 68 68 #include <linux/smp.h> 69 69 #include <linux/sem.h> 70 70 #include <linux/signal.h> 71 - #include <linux/fs_struct.h> 71 + #include <linux/path.h> 72 72 #include <linux/compiler.h> 73 73 #include <linux/completion.h> 74 74 #include <linux/pid.h> ··· 97 97 struct robust_list_head; 98 98 struct bio; 99 99 struct bts_tracer; 100 + struct fs_struct; 100 101 101 102 /* 102 103 * List of flags we want to share for kernel threads,
+1
init/do_mounts.c
··· 14 14 #include <linux/fs.h> 15 15 #include <linux/initrd.h> 16 16 #include <linux/async.h> 17 + #include <linux/fs_struct.h> 17 18 18 19 #include <linux/nfs_fs.h> 19 20 #include <linux/nfs_fs_sb.h>
+1
kernel/auditsc.c
··· 66 66 #include <linux/syscalls.h> 67 67 #include <linux/inotify.h> 68 68 #include <linux/capability.h> 69 + #include <linux/fs_struct.h> 69 70 70 71 #include "audit.h" 71 72
+1
kernel/exec_domain.c
··· 18 18 #include <linux/syscalls.h> 19 19 #include <linux/sysctl.h> 20 20 #include <linux/types.h> 21 + #include <linux/fs_struct.h> 21 22 22 23 23 24 static void default_handler(int, struct pt_regs *);
+1
kernel/exit.c
··· 46 46 #include <linux/blkdev.h> 47 47 #include <linux/task_io_accounting_ops.h> 48 48 #include <linux/tracehook.h> 49 + #include <linux/fs_struct.h> 49 50 #include <linux/init_task.h> 50 51 #include <trace/sched.h> 51 52
+1
kernel/fork.c
··· 60 60 #include <linux/tty.h> 61 61 #include <linux/proc_fs.h> 62 62 #include <linux/blkdev.h> 63 + #include <linux/fs_struct.h> 63 64 #include <trace/sched.h> 64 65 #include <linux/magic.h> 65 66
+1
kernel/sys.c
··· 34 34 #include <linux/seccomp.h> 35 35 #include <linux/cpu.h> 36 36 #include <linux/ptrace.h> 37 + #include <linux/fs_struct.h> 37 38 38 39 #include <linux/compat.h> 39 40 #include <linux/syscalls.h>
+1
security/tomoyo/realpath.c
··· 12 12 #include <linux/types.h> 13 13 #include <linux/mount.h> 14 14 #include <linux/mnt_namespace.h> 15 + #include <linux/fs_struct.h> 15 16 #include "common.h" 16 17 #include "realpath.h" 17 18