提交 9bf2aa12 编写于 作者: A Alexey Dobriyan 提交者: Trond Myklebust

nfs: remove nfs_put_link()

Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 6ab86aa1
......@@ -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,
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册