Home
last modified time | relevance | path

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

/linux-4.1.27/fs/nfs/
Ddirect.c78 struct nfs_lock_context *l_ctx; /* Lock context info */ member
325 if (dreq->l_ctx != NULL) in nfs_direct_req_free()
326 nfs_put_lock_context(dreq->l_ctx); in nfs_direct_req_free()
574 struct nfs_lock_context *l_ctx; in nfs_file_direct_read() local
602 l_ctx = nfs_get_lock_context(dreq->ctx); in nfs_file_direct_read()
603 if (IS_ERR(l_ctx)) { in nfs_file_direct_read()
604 result = PTR_ERR(l_ctx); in nfs_file_direct_read()
607 dreq->l_ctx = l_ctx; in nfs_file_direct_read()
965 struct nfs_lock_context *l_ctx; in nfs_file_direct_write() local
1001 l_ctx = nfs_get_lock_context(dreq->ctx); in nfs_file_direct_write()
[all …]
Dpagelist.c357 struct nfs_lock_context *l_ctx; in nfs_create_request() local
367 l_ctx = nfs_get_lock_context(ctx); in nfs_create_request()
368 if (IS_ERR(l_ctx)) { in nfs_create_request()
370 return ERR_CAST(l_ctx); in nfs_create_request()
372 req->wb_lock_context = l_ctx; in nfs_create_request()
373 nfs_iocounter_inc(&l_ctx->io_count); in nfs_create_request()
427 struct nfs_lock_context *l_ctx = req->wb_lock_context; in nfs_clear_request() local
433 if (l_ctx != NULL) { in nfs_clear_request()
434 nfs_iocounter_dec(&l_ctx->io_count); in nfs_clear_request()
435 nfs_put_lock_context(l_ctx); in nfs_clear_request()
Dfile.c779 struct nfs_lock_context *l_ctx; in do_unlk() local
788 l_ctx = nfs_get_lock_context(nfs_file_open_context(filp)); in do_unlk()
789 if (!IS_ERR(l_ctx)) { in do_unlk()
790 status = nfs_iocounter_wait(&l_ctx->io_count); in do_unlk()
791 nfs_put_lock_context(l_ctx); in do_unlk()
Dinode.c688 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) in nfs_init_lock_context() argument
690 atomic_set(&l_ctx->count, 1); in nfs_init_lock_context()
691 l_ctx->lockowner.l_owner = current->files; in nfs_init_lock_context()
692 l_ctx->lockowner.l_pid = current->tgid; in nfs_init_lock_context()
693 INIT_LIST_HEAD(&l_ctx->list); in nfs_init_lock_context()
694 nfs_iocounter_init(&l_ctx->io_count); in nfs_init_lock_context()
741 void nfs_put_lock_context(struct nfs_lock_context *l_ctx) in nfs_put_lock_context() argument
743 struct nfs_open_context *ctx = l_ctx->open_context; in nfs_put_lock_context()
746 if (!atomic_dec_and_lock(&l_ctx->count, &inode->i_lock)) in nfs_put_lock_context()
748 list_del(&l_ctx->list); in nfs_put_lock_context()
[all …]
Dwrite.c1094 struct nfs_lock_context *l_ctx; in nfs_flush_incompatible() local
1110 l_ctx = req->wb_lock_context; in nfs_flush_incompatible()
1114 if (l_ctx && flctx && in nfs_flush_incompatible()
1117 do_flush |= l_ctx->lockowner.l_owner != current->files in nfs_flush_incompatible()
1118 || l_ctx->lockowner.l_pid != current->tgid; in nfs_flush_incompatible()
Dnfs4_fs.h257 const struct nfs_lock_context *l_ctx,
Dnfs4proc.c4121 const struct nfs_lock_context *l_ctx, in nfs4_set_rw_stateid() argument
4126 if (l_ctx != NULL) in nfs4_set_rw_stateid()
4127 lockowner = &l_ctx->lockowner; in nfs4_set_rw_stateid()
4134 const struct nfs_lock_context *l_ctx, in nfs4_stateid_is_current() argument
4140 if (nfs4_set_rw_stateid(&current_stateid, ctx, l_ctx, fmode) == -EIO) in nfs4_stateid_is_current()
/linux-4.1.27/include/linux/
Dnfs_fs.h371 extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx);