Searched refs:l_ctx (Results 1 – 8 of 8) sorted by relevance
78 struct nfs_lock_context *l_ctx; /* Lock context info */ member325 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() local602 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() local1001 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()
779 struct nfs_lock_context *l_ctx; in do_unlk() local788 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()
688 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) in nfs_init_lock_context() argument690 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() argument743 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 …]
1094 struct nfs_lock_context *l_ctx; in nfs_flush_incompatible() local1110 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()
257 const struct nfs_lock_context *l_ctx,
4121 const struct nfs_lock_context *l_ctx, in nfs4_set_rw_stateid() argument4126 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() argument4140 if (nfs4_set_rw_stateid(¤t_stateid, ctx, l_ctx, fmode) == -EIO) in nfs4_stateid_is_current()
371 extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx);