Home
last modified time | relevance | path

Searched refs:l_ctx (Results 1 – 5 of 5) sorted by relevance

/linux-2.6.39/fs/nfs/
Ddirect.c73 struct nfs_lock_context *l_ctx; /* Lock context info */ member
165 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 …]
Dpagelist.c149 struct nfs_lock_context *l_ctx = req->wb_lock_context; in nfs_clear_request() local
155 if (l_ctx != NULL) { in nfs_clear_request()
156 nfs_put_lock_context(l_ctx); in nfs_clear_request()
Dinode.c543 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) in nfs_init_lock_context() argument
545 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() argument
595 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()
Dnfs4xdr.c1421 …eam *xdr, const struct nfs_open_context *ctx, const struct nfs_lock_context *l_ctx, int zero_seqid) in encode_stateid() argument
1428 nfs4_copy_stateid(&stateid, ctx->state, l_ctx->lockowner, l_ctx->pid); in encode_stateid()
/linux-2.6.39/include/linux/
Dnfs_fs.h378 extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx);