]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/lockd/mon.c
[PATCH] namespaces: utsname: switch to using uts namespaces
[net-next-2.6.git] / fs / lockd / mon.c
index 5954dcb497e4e43b241ba48d6cab7f6b1453e307..a816b920d431fcfd60fc806b10bd4e0cc25c02f7 100644 (file)
@@ -145,7 +145,7 @@ xdr_encode_common(struct rpc_rqst *rqstp, u32 *p, struct nsm_args *argp)
         */
        sprintf(buffer, "%u.%u.%u.%u", NIPQUAD(argp->addr));
        if (!(p = xdr_encode_string(p, buffer))
-        || !(p = xdr_encode_string(p, system_utsname.nodename)))
+        || !(p = xdr_encode_string(p, utsname()->nodename)))
                return ERR_PTR(-EIO);
        *p++ = htonl(argp->prog);
        *p++ = htonl(argp->vers);