Lines Matching refs:ctx
131 struct nfs_fs_context *ctx)
160 __func__, path, ctx->nfs_server.export_path);
290 struct nfs_fs_context *ctx = nfs_fc2context(fc);
306 kfree(ctx->nfs_server.hostname);
307 ctx->nfs_server.hostname = kmalloc(len + 1, GFP_KERNEL);
308 if (!ctx->nfs_server.hostname)
312 &ctx->nfs_server.export_path_len);
316 kfree(ctx->nfs_server.export_path);
317 ctx->nfs_server.export_path = export_path;
319 source = kmalloc(len + 1 + ctx->nfs_server.export_path_len + 1,
332 ctx->nfs_server.addrlen =
334 &ctx->nfs_server.address,
335 sizeof(ctx->nfs_server._address),
337 if (ctx->nfs_server.addrlen == 0)
340 rpc_set_port(&ctx->nfs_server.address, NFS_PORT);
342 memcpy(ctx->nfs_server.hostname, buf->data, buf->len);
343 ctx->nfs_server.hostname[buf->len] = '\0';
349 memcpy(p, ctx->nfs_server.export_path, ctx->nfs_server.export_path_len);
350 p += ctx->nfs_server.export_path_len;
370 struct nfs_fs_context *ctx = nfs_fc2context(fc);
376 dprintk("%s: referral at %pd2\n", __func__, ctx->clone_data.dentry);
379 error = nfs4_validate_fspath(ctx->clone_data.dentry, locations, ctx);
406 struct nfs_fs_context *ctx = nfs_fc2context(fc);
422 dentry = ctx->clone_data.dentry;
447 struct nfs_fs_context *ctx = nfs_fc2context(fc);
448 struct dentry *dentry = ctx->clone_data.dentry;
455 client = nfs4_proc_lookup_mountpoint(dir, dentry, ctx->mntfh,
456 ctx->clone_data.fattr);
461 ctx->selected_flavor = client->cl_auth->au_flavor;
462 if (ctx->clone_data.fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) {