From 4cea4a1e12e02a7b18225f2ae3eec2f8117785d4 Mon Sep 17 00:00:00 2001 From: Alexey Dobriyan Date: Sun, 25 Jun 2006 02:41:28 -0700 Subject: [PATCH] --- yaml --- r: 30132 b: refs/heads/master c: 9bf2aa129a107a0e9e2a5318d35aca731ae7e666 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/nfs/symlink.c | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/[refs] b/[refs] index 046938e96615..770a06eebfd5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6ab86aa13045e7f6742af0b3c3c45f952f9fbb8d +refs/heads/master: 9bf2aa129a107a0e9e2a5318d35aca731ae7e666 diff --git a/trunk/fs/nfs/symlink.c b/trunk/fs/nfs/symlink.c index 636c479995bc..600bbe630abd 100644 --- a/trunk/fs/nfs/symlink.c +++ b/trunk/fs/nfs/symlink.c @@ -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, };