NFSv4: Deal with a sparse warning in nfs_idmap_get_key()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 22 Aug 2013 00:06:11 +0000 (20:06 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 22 Aug 2013 12:58:15 +0000 (08:58 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Bryan Schumaker <bjschuma@netapp.com>
fs/nfs/idmap.c

index c2c4163d56832fd94193c2865faeb64df11e8b74..65c7d91f66f7e0edd3d1301bb538b10d35e2a55b 100644 (file)
@@ -310,7 +310,7 @@ static ssize_t nfs_idmap_get_key(const char *name, size_t namelen,
        if (ret < 0)
                goto out_up;
 
-       payload = rcu_dereference(rkey->payload.data);
+       payload = rcu_dereference(rkey->payload.rcudata);
        if (IS_ERR_OR_NULL(payload)) {
                ret = PTR_ERR(payload);
                goto out_up;