Skip to content

Commit a648273

Browse files
trondmyJ. Bruce Fields
authored andcommitted
NFS: Fix up a typo in nfs_dns_ent_put
call_rcu() needs to take a first argument of type (struct rcu_head *). Fixes: fd497f1 ("NFS: Lockless DNS lookups") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent 437f914 commit a648273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/dns_resolve.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static void nfs_dns_ent_put(struct kref *ref)
116116
struct nfs_dns_ent *item;
117117

118118
item = container_of(ref, struct nfs_dns_ent, h.ref);
119-
call_rcu(item, nfs_dns_ent_free_rcu);
119+
call_rcu(&item->rcu_head, nfs_dns_ent_free_rcu);
120120
}
121121

122122
static struct cache_head *nfs_dns_ent_alloc(void)

0 commit comments

Comments
 (0)