mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
6ab86aa130
commit
9bf2aa129a
1 changed files with 1 additions and 10 deletions
|
@ -75,22 +75,13 @@ read_failed:
|
||||||
return NULL;
|
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...
|
* symlinks can't do much...
|
||||||
*/
|
*/
|
||||||
struct inode_operations nfs_symlink_inode_operations = {
|
struct inode_operations nfs_symlink_inode_operations = {
|
||||||
.readlink = generic_readlink,
|
.readlink = generic_readlink,
|
||||||
.follow_link = nfs_follow_link,
|
.follow_link = nfs_follow_link,
|
||||||
.put_link = nfs_put_link,
|
.put_link = page_put_link,
|
||||||
.getattr = nfs_getattr,
|
.getattr = nfs_getattr,
|
||||||
.setattr = nfs_setattr,
|
.setattr = nfs_setattr,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue