Skip to content

Commit

Permalink
nfs: remove nfs_put_link()
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Alexey Dobriyan authored and Trond Myklebust committed Jun 25, 2006
1 parent 6ab86aa commit 9bf2aa1
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions fs/nfs/symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,13 @@ static void *nfs_follow_link(struct dentry *dentry, struct nameidata *nd)
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,
};

0 comments on commit 9bf2aa1

Please sign in to comment.