nfs: remove nfs_put_link()
authorAlexey Dobriyan <adobriyan@gmail.com>
Sun, 25 Jun 2006 09:41:28 +0000 (02:41 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 25 Jun 2006 10:39:35 +0000 (06:39 -0400)
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>
fs/nfs/symlink.c

index 636c479995bcdc35d9d3fb1437d1ff72fd124e92..600bbe630abd99cdc6e8f9074984495630c9adc1 100644 (file)
@@ -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,
 };