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

Commit 9bf2aa12 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Trond Myklebust
Browse files

nfs: remove nfs_put_link()



Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 6ab86aa1
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -75,22 +75,13 @@ read_failed:
	return NULL;
}

static void nfs_put_link(struct dentry *dentry, struct nameidata *nd, void *cookie)
{
	if (cookie) {
		struct page *page = cookie;
		kunmap(page);
		page_cache_release(page);
	}
}

/*
 * symlinks can't do much...
 */
struct inode_operations nfs_symlink_inode_operations = {
	.readlink	= generic_readlink,
	.follow_link	= nfs_follow_link,
	.put_link	= nfs_put_link,
	.put_link	= page_put_link,
	.getattr	= nfs_getattr,
	.setattr	= nfs_setattr,
};