Searched refs:l_ctx (Results 1 – 8 of 8) sorted by relevance
78 struct nfs_lock_context *l_ctx; /* Lock context info */ member328 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() local605 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() local1004 l_ctx = nfs_get_lock_context(dreq->ctx); in nfs_file_direct_write()[all …]
357 struct nfs_lock_context *l_ctx; in nfs_create_request() local367 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() local433 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()
748 struct nfs_lock_context *l_ctx; in do_unlk() local757 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()
696 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) in nfs_init_lock_context() argument698 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() argument751 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 …]
1114 struct nfs_lock_context *l_ctx; in nfs_flush_incompatible() local1130 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()
260 const struct nfs_lock_context *l_ctx,
4275 const struct nfs_lock_context *l_ctx, in nfs4_set_rw_stateid() argument4280 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() argument4294 if (nfs4_set_rw_stateid(¤t_stateid, ctx, l_ctx, fmode) == -EIO) in nfs4_stateid_is_current()
375 extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx);