Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Trond Myklebust and committed by
J. Bruce Fields
a6482733 437f9145

+1 -1
+1 -1
fs/nfs/dns_resolve.c
··· 116 116 struct nfs_dns_ent *item; 117 117 118 118 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); 120 120 } 121 121 122 122 static struct cache_head *nfs_dns_ent_alloc(void)