summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTrond Myklebust <trondmy@gmail.com>2018-10-05 10:27:20 -0400
committerJ. Bruce Fields <bfields@redhat.com>2018-10-29 16:58:04 -0400
commita6482733bc98aa04b44c91e744bbcbfb29f8d3ee (patch)
treec66c2d0f57431d2b94daf4257c0fcd59eabe929d /fs
parent437f91451349a94d581cb9a928fa3958153f0b71 (diff)
downloadlinux-a6482733bc98aa04b44c91e744bbcbfb29f8d3ee.tar.bz2
NFS: Fix up a typo in nfs_dns_ent_put
call_rcu() needs to take a first argument of type (struct rcu_head *). Fixes: fd497f1e40d9 ("NFS: Lockless DNS lookups") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/dns_resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dns_resolve.c b/fs/nfs/dns_resolve.c
index e93a5dc07c8c..a7d3df85736d 100644
--- a/fs/nfs/dns_resolve.c
+++ b/fs/nfs/dns_resolve.c
@@ -116,7 +116,7 @@ static void nfs_dns_ent_put(struct kref *ref)
struct nfs_dns_ent *item;
item = container_of(ref, struct nfs_dns_ent, h.ref);
- call_rcu(item, nfs_dns_ent_free_rcu);
+ call_rcu(&item->rcu_head, nfs_dns_ent_free_rcu);
}
static struct cache_head *nfs_dns_ent_alloc(void)