Lines Matching refs:ctx
131 struct nfs_fs_context *ctx)
160 __func__, path, ctx->nfs_server.export_path);
291 struct nfs_fs_context *ctx = nfs_fc2context(fc);
307 kfree(ctx->nfs_server.hostname);
308 ctx->nfs_server.hostname = kmalloc(len + 1, GFP_KERNEL);
309 if (!ctx->nfs_server.hostname)
313 &ctx->nfs_server.export_path_len);
317 kfree(ctx->nfs_server.export_path);
318 ctx->nfs_server.export_path = export_path;
320 source = kmalloc(len + 1 + ctx->nfs_server.export_path_len + 1,
333 ctx->nfs_server.addrlen =
335 &ctx->nfs_server._address,
336 sizeof(ctx->nfs_server._address),
338 if (ctx->nfs_server.addrlen == 0)
341 rpc_set_port(&ctx->nfs_server.address, NFS_PORT);
343 memcpy(ctx->nfs_server.hostname, buf->data, buf->len);
344 ctx->nfs_server.hostname[buf->len] = '\0';
350 memcpy(p, ctx->nfs_server.export_path, ctx->nfs_server.export_path_len);
351 p += ctx->nfs_server.export_path_len;
371 struct nfs_fs_context *ctx = nfs_fc2context(fc);
377 dprintk("%s: referral at %pd2\n", __func__, ctx->clone_data.dentry);
380 error = nfs4_validate_fspath(ctx->clone_data.dentry, locations, ctx);
407 struct nfs_fs_context *ctx = nfs_fc2context(fc);
426 dentry = ctx->clone_data.dentry;
453 struct nfs_fs_context *ctx = nfs_fc2context(fc);
454 struct dentry *dentry = ctx->clone_data.dentry;
461 client = nfs4_proc_lookup_mountpoint(dir, dentry, ctx->mntfh,
462 ctx->clone_data.fattr);
467 ctx->selected_flavor = client->cl_auth->au_flavor;
468 if (ctx->clone_data.fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) {