split namei.h out of fs.h
Subsystems (13)
PATCH 1/1 split namei.h out of fs.h
Currently fs.h is full of unrelated declarations and included in almost any source file. Thus it makes sense to spilt certain aspects out that are only used by few users.
This patch starts with the namei/path lookup interface and splits it into <linux/namei.h> which is now directly included by the 24 files that actually need it.
drivers/usb/core/inode.c +1 -0
@@ -35,6 +35,7 @@#include <linux/init.h> #include <linux/proc_fs.h> #include <linux/usb.h> +#include <linux/namei.h> #include <linux/usbdevice_fs.h> #include <linux/smp_lock.h> #include <asm/byteorder.h>
fs/binfmt_misc.c +1 -0
@@ -24,6 +24,7 @@#include <linux/ctype.h> #include <linux/file.h> #include <linux/pagemap.h> +#include <linux/namei.h> #include <asm/uaccess.h>
fs/exec.c +1 -0
@@ -38,6 +38,7 @@#include <linux/binfmts.h> #define __NO_VERSION__#include <linux/module.h> +#include <linux/namei.h> #include <asm/uaccess.h> #include <asm/pgalloc.h>
fs/namei.c +1 -0
@@ -17,6 +17,7 @@#include <linux/init.h> #include <linux/slab.h> #include <linux/fs.h> +#include <linux/namei.h> #include <linux/quotaops.h> #include <linux/pagemap.h> #include <linux/dnotify.h>
fs/namespace.c +1 -0
@@ -18,6 +18,7 @@#include <linux/module.h> #include <linux/seq_file.h> #include <linux/namespace.h> +#include <linux/namei.h> #include <asm/uaccess.h>
fs/nfsctl.c +1 -0
@@ -11,6 +11,7 @@#include <linux/nfsd/nfsd.h> #include <linux/nfsd/syscall.h> #include <linux/linkage.h> +#include <linux/namei.h> #include <asm/uaccess.h> /*
fs/open.c +1 -0
@@ -15,6 +15,7 @@#include <linux/slab.h> #include <linux/tty.h> #include <linux/iobuf.h> +#include <linux/namei.h> #include <linux/backing-dev.h> #include <asm/uaccess.h>
fs/quota.c +1 -0
@@ -11,6 +11,7 @@#include <asm/uaccess.h> #include <linux/kernel.h> #include <linux/smp_lock.h> +#include <linux/namei.h> #ifdef CONFIG_QIFACE_COMPAT #include <linux/quotacompat.h> #endif
fs/stat.c +1 -0
@@ -11,6 +11,7 @@#include <linux/smp_lock.h> #include <linux/highuid.h> #include <linux/fs.h> +#include <linux/namei.h> #include <asm/uaccess.h>
fs/super.c +1 -0
@@ -27,6 +27,7 @@#include <linux/acct.h> #include <linux/blkdev.h> #include <linux/quotaops.h> +#include <linux/namei.h> #include <asm/uaccess.h> void get_filesystem (struct file_system_type *fs);
fs/xattr.c +1 -0
@@ -12,6 +12,7 @@#include <linux/smp_lock.h> #include <linux/file.h> #include <linux/xattr.h> +#include <linux/namei.h> #include <asm/uaccess.h> /*
fs/autofs/dirhash.c +2 -0
@@ -10,6 +10,8 @@* * ------------------------------------------------------------------------- */ +#include <linux/dcache.h> +#include <linux/namei.h> #include "autofs_i.h" /* Functions for maintenance of expiry queue */
fs/coda/pioctl.c +1 -0
@@ -15,6 +15,7 @@#include <linux/errno.h> #include <linux/string.h> #define __NO_VERSION__ +#include <linux/namei.h> #include <linux/module.h> #include <asm/uaccess.h>
fs/driverfs/inode.c +1 -0
@@ -29,6 +29,7 @@#include <linux/stat.h> #include <linux/fs.h> #include <linux/dcache.h> +#include <linux/namei.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/device.h>
fs/exportfs/expfs.c +1 -0
@@ -2,6 +2,7 @@#include <linux/fs.h> #include <linux/module.h> #include <linux/smp_lock.h> +#include <linux/namei.h> struct export_operations export_op_default;
fs/nfs/dir.c +1 -0
@@ -30,6 +30,7 @@#include <linux/nfs_mount.h> #include <linux/pagemap.h> #include <linux/smp_lock.h> +#include <linux/namei.h> #define NFS_PARANOIA 1/* #define NFS_DEBUG_VERBOSE 1 */
fs/nfsd/export.c +1 -0
@@ -21,6 +21,7 @@#include <linux/in.h> #include <linux/seq_file.h> #include <linux/rwsem.h> +#include <linux/namei.h> #include <linux/sunrpc/svc.h> #include <linux/nfsd/nfsd.h>
fs/nfsd/nfs3xdr.c +2 -0
@@ -9,6 +9,8 @@#include <linux/types.h> #include <linux/time.h> #include <linux/nfs3.h> +#include <linux/dcache.h> +#include <linux/namei.h> #include <linux/sunrpc/xdr.h> #include <linux/sunrpc/svc.h>
fs/nfsd/nfsproc.c +1 -0
@@ -15,6 +15,7 @@#include <linux/fcntl.h> #include <linux/net.h> #include <linux/in.h> +#include <linux/namei.h> #include <linux/version.h> #include <linux/unistd.h> #include <linux/slab.h>
fs/nfsd/vfs.c +1 -0
@@ -32,6 +32,7 @@#include <linux/in.h> #define __NO_VERSION__#include <linux/module.h> +#include <linux/namei.h> #include <linux/sunrpc/svc.h> #include <linux/nfsd/nfsd.h>
fs/proc/base.c +1 -0
@@ -24,6 +24,7 @@#include <linux/file.h> #include <linux/string.h> #include <linux/seq_file.h> +#include <linux/namei.h> #include <linux/namespace.h> #include <linux/mm.h> #include <linux/smp_lock.h>
include/linux/fs.h +1 -45
76 lines not on this page · raw message
kernel/ksyms.c +1 -0
@@ -47,6 +47,7 @@#include <linux/completion.h> #include <linux/seq_file.h> #include <linux/binfmts.h> +#include <linux/namei.h> #include <asm/checksum.h> #if defined(CONFIG_PROC_FS )
mm/swapfile.c +1 -0
@@ -13,6 +13,7 @@#include <linux/swapctl.h> #include <linux/vmalloc.h> #include <linux/pagemap.h> +#include <linux/namei.h> #include <linux/shm.h> #include <linux/blkdev.h> #include <linux/compiler.h>
net/unix/af_unix.c +1 -0
@@ -88,6 +88,7 @@#include <linux/errno.h> #include <linux/string.h> #include <linux/stat.h> +#include <linux/namei.h> #include <linux/socket.h> #include <linux/un.h> #include <linux/fcntl.h>
include/linux/namei.h new file +56 -0
56 lines not on this page · raw message
Quoted 7 lines · Christoph Hellwig
Currently
fs.his full of unrelated declarations and included in almost any source file. Thus it makes sense to spilt certain aspects out that are only used by few users.This patch starts with the namei/path lookup interface and splits it into <
linux/namei.h> which is now directly included by the 24 files that actually need it.
Please, make a version that would take open_namei() and may_open() into the same place.
Quoted 6 lines · Alexander Viro
Quoted 3 lines
This patch starts with the namei/path lookup interface and splits it into <
linux/namei.h> which is now directly included by the 24 files that actually need it.Please, make a version that would take
open_namei()andmay_open()into the same place.
I will send an incremental patch if Linus applies this one - else it'll be integrated when I resend.
Quoted 10 lines · Christoph Hellwig
Quoted 6 lines · Alexander Viro
Quoted 3 lines
This patch starts with the namei/path lookup interface and splits it into <
linux/namei.h> which is now directly included by the 24 files that actually need it.Please, make a version that would take
open_namei()andmay_open()into the same place.I will send an incremental patch if Linus applies this one - else it'll be integrated when I resend.
OK with me.