Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f2c4179 authored by Al Viro's avatar Al Viro
Browse files

switch ->put_link() from dentry to inode



only one instance looks at that argument at all; that sole
exception wants inode rather than dentry.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent bda0be7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ prototypes:
			struct inode *, struct dentry *, unsigned int);
	int (*readlink) (struct dentry *, char __user *,int);
	const char *(*follow_link) (struct dentry *, void **);
	void (*put_link) (struct dentry *, void *);
	void (*put_link) (struct inode *, void *);
	void (*truncate) (struct inode *);
	int (*permission) (struct inode *, int, unsigned int);
	int (*get_acl)(struct inode *, int);
+1 −1
Original line number Diff line number Diff line
@@ -351,7 +351,7 @@ struct inode_operations {
			struct inode *, struct dentry *, unsigned int);
	int (*readlink) (struct dentry *, char __user *,int);
	const char *(*follow_link) (struct dentry *, void **);
	void (*put_link) (struct dentry *, void *);
	void (*put_link) (struct inode *, void *);
	int (*permission) (struct inode *, int);
	int (*get_acl)(struct inode *, int);
	int (*setattr) (struct dentry *, struct iattr *);
+1 −1
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ static const char *ll_follow_link(struct dentry *dentry, void **cookie)
	return symname;
}

static void ll_put_link(struct dentry *dentry, void *cookie)
static void ll_put_link(struct inode *unused, void *cookie)
{
	ptlrpc_req_finished(cookie);
}
+1 −1
Original line number Diff line number Diff line
@@ -296,7 +296,7 @@ static const char *configfs_follow_link(struct dentry *dentry, void **cookie)
	return ERR_PTR(error);
}

static void configfs_put_link(struct dentry *dentry, void *cookie)
static void configfs_put_link(struct inode *unused, void *cookie)
{
	free_page((unsigned long)cookie);
}
+1 −1
Original line number Diff line number Diff line
@@ -301,7 +301,7 @@ static const char *f2fs_follow_link(struct dentry *dentry, void **cookie)
	const char *link = page_follow_link_light(dentry, cookie);
	if (!IS_ERR(link) && !*link) {
		/* this is broken symlink case */
		page_put_link(dentry, *cookie);
		page_put_link(NULL, *cookie);
		link = ERR_PTR(-ENOENT);
	}
	return link;
Loading