Home
last modified time | relevance | path

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

/linux-6.15/fs/nfs/
H A Dpagelist.c390 req->wb_lock_context = l_ctx; in nfs_page_create()
391 refcount_inc(&l_ctx->count); in nfs_page_create()
392 atomic_inc(&l_ctx->io_count); in nfs_page_create()
443 if (IS_ERR(l_ctx)) in nfs_page_create_from_page()
444 return ERR_CAST(l_ctx); in nfs_page_create_from_page()
451 nfs_put_lock_context(l_ctx); in nfs_page_create_from_page()
474 if (IS_ERR(l_ctx)) in nfs_page_create_from_folio()
475 return ERR_CAST(l_ctx); in nfs_page_create_from_folio()
481 nfs_put_lock_context(l_ctx); in nfs_page_create_from_folio()
561 if (l_ctx != NULL) { in nfs_clear_request()
[all …]
H A Dnfs3proc.c967 struct nfs_lock_context *l_ctx = data; in nfs3_nlm_alloc_call() local
968 if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) { in nfs3_nlm_alloc_call()
977 if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) in nfs3_nlm_unlock_prepare()
987 if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) { in nfs3_nlm_release_call()
988 ctx = l_ctx->open_context; in nfs3_nlm_release_call()
989 nfs_put_lock_context(l_ctx); in nfs3_nlm_release_call()
1009 l_ctx = nfs_get_lock_context(ctx); in nfs3_proc_lock()
1010 if (IS_ERR(l_ctx)) in nfs3_proc_lock()
1011 l_ctx = NULL; in nfs3_proc_lock()
1018 if (l_ctx) in nfs3_proc_lock()
[all …]
H A Ddirect.c209 if (dreq->l_ctx != NULL) in nfs_direct_req_free()
210 nfs_put_lock_context(dreq->l_ctx); in nfs_direct_req_free()
439 struct nfs_lock_context *l_ctx; in nfs_file_direct_read() local
462 l_ctx = nfs_get_lock_context(dreq->ctx); in nfs_file_direct_read()
463 if (IS_ERR(l_ctx)) { in nfs_file_direct_read()
464 result = PTR_ERR(l_ctx); in nfs_file_direct_read()
468 dreq->l_ctx = l_ctx; in nfs_file_direct_read()
997 struct nfs_lock_context *l_ctx; in nfs_file_direct_write() local
1028 if (IS_ERR(l_ctx)) { in nfs_file_direct_write()
1029 result = PTR_ERR(l_ctx); in nfs_file_direct_write()
[all …]
H A Dfile.c762 struct nfs_lock_context *l_ctx; in do_unlk() local
771 l_ctx = nfs_get_lock_context(nfs_file_open_context(filp)); in do_unlk()
772 if (!IS_ERR(l_ctx)) { in do_unlk()
773 status = nfs_iocounter_wait(l_ctx); in do_unlk()
774 nfs_put_lock_context(l_ctx); in do_unlk()
H A Dinode.c1015 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) in nfs_init_lock_context() argument
1017 refcount_set(&l_ctx->count, 1); in nfs_init_lock_context()
1018 l_ctx->lockowner = current->files; in nfs_init_lock_context()
1019 INIT_LIST_HEAD(&l_ctx->list); in nfs_init_lock_context()
1020 atomic_set(&l_ctx->io_count, 0); in nfs_init_lock_context()
1068 void nfs_put_lock_context(struct nfs_lock_context *l_ctx) in nfs_put_lock_context() argument
1070 struct nfs_open_context *ctx = l_ctx->open_context; in nfs_put_lock_context()
1073 if (!refcount_dec_and_lock(&l_ctx->count, &inode->i_lock)) in nfs_put_lock_context()
1075 list_del_rcu(&l_ctx->list); in nfs_put_lock_context()
1078 kfree_rcu(l_ctx, rcu_head); in nfs_put_lock_context()
H A Dnfs42proc.c749 struct nfs_lock_context *l_ctx; in _nfs42_proc_copy_notify() local
752 l_ctx = nfs_get_lock_context(ctx); in _nfs42_proc_copy_notify()
753 if (IS_ERR(l_ctx)) { in _nfs42_proc_copy_notify()
754 status = PTR_ERR(l_ctx); in _nfs42_proc_copy_notify()
758 status = nfs4_set_rw_stateid(&args->cna_src_stateid, ctx, l_ctx, in _nfs42_proc_copy_notify()
760 nfs_put_lock_context(l_ctx); in _nfs42_proc_copy_notify()
H A Dnfs4state.c981 const struct nfs_lock_context *l_ctx) in nfs4_copy_lock_stateid() argument
987 if (l_ctx == NULL) in nfs4_copy_lock_stateid()
993 owner = l_ctx->lockowner; in nfs4_copy_lock_stateid()
994 fl_flock_owner = l_ctx->open_context->flock_owner; in nfs4_copy_lock_stateid()
1034 fmode_t fmode, const struct nfs_lock_context *l_ctx, in nfs4_select_rw_stateid() argument
1043 ret = nfs4_copy_lock_stateid(dst, state, l_ctx); in nfs4_select_rw_stateid()
H A Dinternal.h305 int nfs_iocounter_wait(struct nfs_lock_context *l_ctx);
964 struct nfs_lock_context *l_ctx; /* Lock context info */ member
H A Dwrite.c1171 struct nfs_lock_context *l_ctx; in nfs_flush_incompatible() local
1187 l_ctx = req->wb_lock_context; in nfs_flush_incompatible()
1190 if (l_ctx && flctx && in nfs_flush_incompatible()
1193 do_flush |= l_ctx->lockowner != current->files; in nfs_flush_incompatible()
H A Dnfs4proc.c3421 struct nfs_lock_context *l_ctx; in _nfs4_do_setattr() local
3424 l_ctx = nfs_get_lock_context(ctx); in _nfs4_do_setattr()
3425 if (IS_ERR(l_ctx)) in _nfs4_do_setattr()
3426 return PTR_ERR(l_ctx); in _nfs4_do_setattr()
3429 nfs_put_lock_context(l_ctx); in _nfs4_do_setattr()
5538 const struct nfs_lock_context *l_ctx, in nfs4_set_rw_stateid() argument
7072 struct nfs_lock_context *l_ctx; member
7086 struct nfs_lock_context *l_ctx; in nfs4_alloc_unlockdata() local
7091 l_ctx = nfs_get_lock_context(ctx); in nfs4_alloc_unlockdata()
7092 if (!IS_ERR(l_ctx)) { in nfs4_alloc_unlockdata()
[all …]
H A Dnfs4_fs.h322 const struct nfs_lock_context *l_ctx,
/linux-6.15/include/linux/
H A Dnfs_fs.h465 extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx);