Home
last modified time | relevance | path

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

/linux-4.4.14/fs/nfs/
Ddirect.c78 struct nfs_lock_context *l_ctx; /* Lock context info */ member
328 if (dreq->l_ctx != NULL) in nfs_direct_req_free()
329 nfs_put_lock_context(dreq->l_ctx); in nfs_direct_req_free()
577 struct nfs_lock_context *l_ctx; in nfs_file_direct_read() local
605 l_ctx = nfs_get_lock_context(dreq->ctx); in nfs_file_direct_read()
606 if (IS_ERR(l_ctx)) { in nfs_file_direct_read()
607 result = PTR_ERR(l_ctx); in nfs_file_direct_read()
610 dreq->l_ctx = l_ctx; in nfs_file_direct_read()
968 struct nfs_lock_context *l_ctx; in nfs_file_direct_write() local
1004 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.c748 struct nfs_lock_context *l_ctx; in do_unlk() local
757 l_ctx = nfs_get_lock_context(nfs_file_open_context(filp)); in do_unlk()
758 if (!IS_ERR(l_ctx)) { in do_unlk()
759 status = nfs_iocounter_wait(&l_ctx->io_count); in do_unlk()
760 nfs_put_lock_context(l_ctx); in do_unlk()
Dinode.c696 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) in nfs_init_lock_context() argument
698 atomic_set(&l_ctx->count, 1); in nfs_init_lock_context()
699 l_ctx->lockowner.l_owner = current->files; in nfs_init_lock_context()
700 l_ctx->lockowner.l_pid = current->tgid; in nfs_init_lock_context()
701 INIT_LIST_HEAD(&l_ctx->list); in nfs_init_lock_context()
702 nfs_iocounter_init(&l_ctx->io_count); in nfs_init_lock_context()
749 void nfs_put_lock_context(struct nfs_lock_context *l_ctx) in nfs_put_lock_context() argument
751 struct nfs_open_context *ctx = l_ctx->open_context; in nfs_put_lock_context()
754 if (!atomic_dec_and_lock(&l_ctx->count, &inode->i_lock)) in nfs_put_lock_context()
756 list_del(&l_ctx->list); in nfs_put_lock_context()
[all …]
Dwrite.c1114 struct nfs_lock_context *l_ctx; in nfs_flush_incompatible() local
1130 l_ctx = req->wb_lock_context; in nfs_flush_incompatible()
1134 if (l_ctx && flctx && in nfs_flush_incompatible()
1137 do_flush |= l_ctx->lockowner.l_owner != current->files in nfs_flush_incompatible()
1138 || l_ctx->lockowner.l_pid != current->tgid; in nfs_flush_incompatible()
Dnfs4_fs.h260 const struct nfs_lock_context *l_ctx,
Dnfs4proc.c4275 const struct nfs_lock_context *l_ctx, in nfs4_set_rw_stateid() argument
4280 if (l_ctx != NULL) in nfs4_set_rw_stateid()
4281 lockowner = &l_ctx->lockowner; in nfs4_set_rw_stateid()
4288 const struct nfs_lock_context *l_ctx, in nfs4_stateid_is_current() argument
4294 if (nfs4_set_rw_stateid(&current_stateid, ctx, l_ctx, fmode) == -EIO) in nfs4_stateid_is_current()
/linux-4.4.14/include/linux/
Dnfs_fs.h375 extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx);