Searched refs:l_ctx (Results 1 – 5 of 5) sorted by relevance
73 struct nfs_lock_context *l_ctx; /* Lock context info */ member165 dreq->l_ctx = NULL; in nfs_direct_req_alloc()179 if (dreq->l_ctx != NULL) in nfs_direct_req_free()180 nfs_put_lock_context(dreq->l_ctx); in nfs_direct_req_free()344 data->args.lock_context = dreq->l_ctx; in nfs_direct_read_schedule_segment()438 dreq->l_ctx = nfs_get_lock_context(dreq->ctx); in nfs_direct_read()439 if (dreq->l_ctx == NULL) in nfs_direct_read()590 data->args.lock_context = dreq->l_ctx; in nfs_direct_commit_schedule()777 data->args.lock_context = dreq->l_ctx; in nfs_direct_write_schedule_segment()881 dreq->l_ctx = nfs_get_lock_context(dreq->ctx); in nfs_direct_write()[all …]
149 struct nfs_lock_context *l_ctx = req->wb_lock_context; in nfs_clear_request() local155 if (l_ctx != NULL) { in nfs_clear_request()156 nfs_put_lock_context(l_ctx); in nfs_clear_request()
543 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) in nfs_init_lock_context() argument545 atomic_set(&l_ctx->count, 1); in nfs_init_lock_context()546 l_ctx->lockowner = current->files; in nfs_init_lock_context()547 l_ctx->pid = current->tgid; in nfs_init_lock_context()548 INIT_LIST_HEAD(&l_ctx->list); in nfs_init_lock_context()593 void nfs_put_lock_context(struct nfs_lock_context *l_ctx) in nfs_put_lock_context() argument595 struct nfs_open_context *ctx = l_ctx->open_context; in nfs_put_lock_context()598 if (!atomic_dec_and_lock(&l_ctx->count, &inode->i_lock)) in nfs_put_lock_context()600 list_del(&l_ctx->list); in nfs_put_lock_context()602 kfree(l_ctx); in nfs_put_lock_context()
1421 …eam *xdr, const struct nfs_open_context *ctx, const struct nfs_lock_context *l_ctx, int zero_seqid) in encode_stateid() argument1428 nfs4_copy_stateid(&stateid, ctx->state, l_ctx->lockowner, l_ctx->pid); in encode_stateid()
378 extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx);