Commit 6e77137b authored by Al Viro's avatar Al Viro
Browse files

don't pass nameidata to ->follow_link()



its only use is getting passed to nd_jump_link(), which can obtain
it from current->nameidata

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 8402752e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ prototypes:
	int (*rename2) (struct inode *, struct dentry *,
			struct inode *, struct dentry *, unsigned int);
	int (*readlink) (struct dentry *, char __user *,int);
	const char *(*follow_link) (struct dentry *, void **, struct nameidata *);
	const char *(*follow_link) (struct dentry *, void **);
	void (*put_link) (struct dentry *, void *);
	void (*truncate) (struct inode *);
	int (*permission) (struct inode *, int, unsigned int);
+1 −1
Original line number Diff line number Diff line
@@ -350,7 +350,7 @@ struct inode_operations {
	int (*rename2) (struct inode *, struct dentry *,
			struct inode *, struct dentry *, unsigned int);
	int (*readlink) (struct dentry *, char __user *,int);
	const char *(*follow_link) (struct dentry *, void **, struct nameidata *);
	const char *(*follow_link) (struct dentry *, void **);
	void (*put_link) (struct dentry *, void *);
	int (*permission) (struct inode *, int);
	int (*get_acl)(struct inode *, int);
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ failed:
	return rc;
}

static const char *ll_follow_link(struct dentry *dentry, void **cookie, struct nameidata *nd)
static const char *ll_follow_link(struct dentry *dentry, void **cookie)
{
	struct inode *inode = d_inode(dentry);
	struct ptlrpc_request *request = NULL;
+1 −1
Original line number Diff line number Diff line
@@ -1230,7 +1230,7 @@ ino_t v9fs_qid2ino(struct p9_qid *qid)
 *
 */

static const char *v9fs_vfs_follow_link(struct dentry *dentry, void **cookie, struct nameidata *nd)
static const char *v9fs_vfs_follow_link(struct dentry *dentry, void **cookie)
{
	struct v9fs_session_info *v9ses = v9fs_dentry2v9ses(dentry);
	struct p9_fid *fid = v9fs_fid_lookup(dentry);
+1 −1
Original line number Diff line number Diff line
@@ -910,7 +910,7 @@ error:
 */

static const char *
v9fs_vfs_follow_link_dotl(struct dentry *dentry, void **cookie, struct nameidata *nd)
v9fs_vfs_follow_link_dotl(struct dentry *dentry, void **cookie)
{
	struct p9_fid *fid = v9fs_fid_lookup(dentry);
	char *target;
Loading