summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-06-25 02:41:28 -0700
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-06-25 06:39:35 -0400
commit9bf2aa129a107a0e9e2a5318d35aca731ae7e666 (patch)
treea639597d29b316cc2d24ce5e3982ca7fc21bded4 /fs/nfs
parent6ab86aa13045e7f6742af0b3c3c45f952f9fbb8d (diff)
downloadlinux-9bf2aa129a107a0e9e2a5318d35aca731ae7e666.tar.gz
linux-9bf2aa129a107a0e9e2a5318d35aca731ae7e666.tar.bz2
linux-9bf2aa129a107a0e9e2a5318d35aca731ae7e666.zip
nfs: remove nfs_put_link()
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>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/symlink.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/nfs/symlink.c b/fs/nfs/symlink.c
index 636c479995bc..600bbe630abd 100644
--- a/fs/nfs/symlink.c
+++ b/fs/nfs/symlink.c
@@ -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,
};