summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-05-12 08:29:38 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-05-15 01:10:37 -0400
commit89076bc31950eee576ecc06460c23466e2d50939 (patch)
tree36d780bb1431ff5312c6ca5ec147d895c6eacbdf
parent322105e2fe20b51587a328e7121dc04ea361b083 (diff)
get rid of assorted nameidata-related debris
pointless forward declarations, stale comments Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/9p/vfs_inode.c3
-rw-r--r--fs/9p/vfs_inode_dotl.c3
-rw-r--r--fs/ecryptfs/inode.c3
-rw-r--r--fs/ntfs/namei.c2
-rw-r--r--include/linux/fs.h1
-rw-r--r--include/linux/namei.h1
-rw-r--r--include/linux/sched.h1
7 files changed, 5 insertions, 9 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 271f51af2f75..510040b04c96 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -1226,8 +1226,7 @@ ino_t v9fs_qid2ino(struct p9_qid *qid)
1226/** 1226/**
1227 * v9fs_vfs_follow_link - follow a symlink path 1227 * v9fs_vfs_follow_link - follow a symlink path
1228 * @dentry: dentry for symlink 1228 * @dentry: dentry for symlink
1229 * @nd: nameidata 1229 * @cookie: place to pass the data to put_link()
1230 *
1231 */ 1230 */
1232 1231
1233static const char *v9fs_vfs_follow_link(struct dentry *dentry, void **cookie) 1232static const char *v9fs_vfs_follow_link(struct dentry *dentry, void **cookie)
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c
index 16658ed677c9..09e4433717b8 100644
--- a/fs/9p/vfs_inode_dotl.c
+++ b/fs/9p/vfs_inode_dotl.c
@@ -905,8 +905,7 @@ error:
905/** 905/**
906 * v9fs_vfs_follow_link_dotl - follow a symlink path 906 * v9fs_vfs_follow_link_dotl - follow a symlink path
907 * @dentry: dentry for symlink 907 * @dentry: dentry for symlink
908 * @nd: nameidata 908 * @cookie: place to pass the data to put_link()
909 *
910 */ 909 */
911 910
912static const char * 911static const char *
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c
index 73d20ae92478..3c4db1172d22 100644
--- a/fs/ecryptfs/inode.c
+++ b/fs/ecryptfs/inode.c
@@ -170,7 +170,6 @@ out_unlock:
170 * @directory_inode: inode of the new file's dentry's parent in ecryptfs 170 * @directory_inode: inode of the new file's dentry's parent in ecryptfs
171 * @ecryptfs_dentry: New file's dentry in ecryptfs 171 * @ecryptfs_dentry: New file's dentry in ecryptfs
172 * @mode: The mode of the new file 172 * @mode: The mode of the new file
173 * @nd: nameidata of ecryptfs' parent's dentry & vfsmount
174 * 173 *
175 * Creates the underlying file and the eCryptfs inode which will link to 174 * Creates the underlying file and the eCryptfs inode which will link to
176 * it. It will also update the eCryptfs directory inode to mimic the 175 * it. It will also update the eCryptfs directory inode to mimic the
@@ -384,7 +383,7 @@ static int ecryptfs_lookup_interpose(struct dentry *dentry,
384 * ecryptfs_lookup 383 * ecryptfs_lookup
385 * @ecryptfs_dir_inode: The eCryptfs directory inode 384 * @ecryptfs_dir_inode: The eCryptfs directory inode
386 * @ecryptfs_dentry: The eCryptfs dentry that we are looking up 385 * @ecryptfs_dentry: The eCryptfs dentry that we are looking up
387 * @ecryptfs_nd: nameidata; may be NULL 386 * @flags: lookup flags
388 * 387 *
389 * Find a file on disk. If the file does not exist, then we'll add it to the 388 * Find a file on disk. If the file does not exist, then we'll add it to the
390 * dentry cache and continue on to read it from the disk. 389 * dentry cache and continue on to read it from the disk.
diff --git a/fs/ntfs/namei.c b/fs/ntfs/namei.c
index 0f35b80d17fe..443abecf01b7 100644
--- a/fs/ntfs/namei.c
+++ b/fs/ntfs/namei.c
@@ -35,7 +35,7 @@
35 * ntfs_lookup - find the inode represented by a dentry in a directory inode 35 * ntfs_lookup - find the inode represented by a dentry in a directory inode
36 * @dir_ino: directory inode in which to look for the inode 36 * @dir_ino: directory inode in which to look for the inode
37 * @dent: dentry representing the inode to look for 37 * @dent: dentry representing the inode to look for
38 * @nd: lookup nameidata 38 * @flags: lookup flags
39 * 39 *
40 * In short, ntfs_lookup() looks for the inode represented by the dentry @dent 40 * In short, ntfs_lookup() looks for the inode represented by the dentry @dent
41 * in the directory inode @dir_ino and if found attaches the inode to the 41 * in the directory inode @dir_ino and if found attaches the inode to the
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 1426c435d455..b577e801b4af 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -38,7 +38,6 @@ struct backing_dev_info;
38struct export_operations; 38struct export_operations;
39struct hd_geometry; 39struct hd_geometry;
40struct iovec; 40struct iovec;
41struct nameidata;
42struct kiocb; 41struct kiocb;
43struct kobject; 42struct kobject;
44struct pipe_inode_info; 43struct pipe_inode_info;
diff --git a/include/linux/namei.h b/include/linux/namei.h
index d756304aa09b..1208e489f83e 100644
--- a/include/linux/namei.h
+++ b/include/linux/namei.h
@@ -7,7 +7,6 @@
7#include <linux/path.h> 7#include <linux/path.h>
8 8
9struct vfsmount; 9struct vfsmount;
10struct nameidata;
11 10
12enum { MAX_NESTED_LINKS = 8 }; 11enum { MAX_NESTED_LINKS = 8 };
13 12
diff --git a/include/linux/sched.h b/include/linux/sched.h
index f6c9b69d66f2..a1158c954f0f 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -132,6 +132,7 @@ struct fs_struct;
132struct perf_event_context; 132struct perf_event_context;
133struct blk_plug; 133struct blk_plug;
134struct filename; 134struct filename;
135struct nameidata;
135 136
136#define VMACACHE_BITS 2 137#define VMACACHE_BITS 2
137#define VMACACHE_SIZE (1U << VMACACHE_BITS) 138#define VMACACHE_SIZE (1U << VMACACHE_BITS)