Searched refs:l_ctx (Results 1 – 12 of 12) sorted by relevance
/linux-6.3-rc2/fs/nfs/ |
A D | pagelist.c | 484 req->wb_lock_context = l_ctx; in nfs_page_create() 485 refcount_inc(&l_ctx->count); in nfs_page_create() 486 atomic_inc(&l_ctx->io_count); in nfs_page_create() 537 if (IS_ERR(l_ctx)) in nfs_page_create_from_page() 538 return ERR_CAST(l_ctx); in nfs_page_create_from_page() 545 nfs_put_lock_context(l_ctx); in nfs_page_create_from_page() 568 if (IS_ERR(l_ctx)) in nfs_page_create_from_folio() 569 return ERR_CAST(l_ctx); in nfs_page_create_from_folio() 575 nfs_put_lock_context(l_ctx); in nfs_page_create_from_folio() 655 if (l_ctx != NULL) { in nfs_clear_request() [all …]
|
A D | nfs3proc.c | 924 struct nfs_lock_context *l_ctx = data; in nfs3_nlm_alloc_call() local 925 if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) { in nfs3_nlm_alloc_call() 934 if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) in nfs3_nlm_unlock_prepare() 944 if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) { in nfs3_nlm_release_call() 945 ctx = l_ctx->open_context; in nfs3_nlm_release_call() 946 nfs_put_lock_context(l_ctx); in nfs3_nlm_release_call() 966 l_ctx = nfs_get_lock_context(ctx); in nfs3_proc_lock() 967 if (IS_ERR(l_ctx)) in nfs3_proc_lock() 968 l_ctx = NULL; in nfs3_proc_lock() 975 if (l_ctx) in nfs3_proc_lock() [all …]
|
A D | direct.c | 186 if (dreq->l_ctx != NULL) in nfs_direct_req_free() 187 nfs_put_lock_context(dreq->l_ctx); in nfs_direct_req_free() 413 struct nfs_lock_context *l_ctx; in nfs_file_direct_read() local 436 l_ctx = nfs_get_lock_context(dreq->ctx); in nfs_file_direct_read() 437 if (IS_ERR(l_ctx)) { in nfs_file_direct_read() 438 result = PTR_ERR(l_ctx); in nfs_file_direct_read() 442 dreq->l_ctx = l_ctx; in nfs_file_direct_read() 880 struct nfs_lock_context *l_ctx; in nfs_file_direct_write() local 911 if (IS_ERR(l_ctx)) { in nfs_file_direct_write() 912 result = PTR_ERR(l_ctx); in nfs_file_direct_write() [all …]
|
A D | file.c | 743 struct nfs_lock_context *l_ctx; in do_unlk() local 752 l_ctx = nfs_get_lock_context(nfs_file_open_context(filp)); in do_unlk() 753 if (!IS_ERR(l_ctx)) { in do_unlk() 754 status = nfs_iocounter_wait(l_ctx); in do_unlk() 755 nfs_put_lock_context(l_ctx); in do_unlk()
|
A D | inode.c | 929 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) in nfs_init_lock_context() argument 931 refcount_set(&l_ctx->count, 1); in nfs_init_lock_context() 932 l_ctx->lockowner = current->files; in nfs_init_lock_context() 933 INIT_LIST_HEAD(&l_ctx->list); in nfs_init_lock_context() 934 atomic_set(&l_ctx->io_count, 0); in nfs_init_lock_context() 982 void nfs_put_lock_context(struct nfs_lock_context *l_ctx) in nfs_put_lock_context() argument 984 struct nfs_open_context *ctx = l_ctx->open_context; in nfs_put_lock_context() 987 if (!refcount_dec_and_lock(&l_ctx->count, &inode->i_lock)) in nfs_put_lock_context() 989 list_del_rcu(&l_ctx->list); in nfs_put_lock_context() 992 kfree_rcu(l_ctx, rcu_head); in nfs_put_lock_context()
|
A D | nfs42proc.c | 595 struct nfs_lock_context *l_ctx; in _nfs42_proc_copy_notify() local 598 l_ctx = nfs_get_lock_context(ctx); in _nfs42_proc_copy_notify() 599 if (IS_ERR(l_ctx)) { in _nfs42_proc_copy_notify() 600 status = PTR_ERR(l_ctx); in _nfs42_proc_copy_notify() 604 status = nfs4_set_rw_stateid(&args->cna_src_stateid, ctx, l_ctx, in _nfs42_proc_copy_notify() 606 nfs_put_lock_context(l_ctx); in _nfs42_proc_copy_notify()
|
A D | nfs4state.c | 989 const struct nfs_lock_context *l_ctx) in nfs4_copy_lock_stateid() argument 995 if (l_ctx == NULL) in nfs4_copy_lock_stateid() 1001 fl_owner = l_ctx->lockowner; in nfs4_copy_lock_stateid() 1002 fl_flock_owner = l_ctx->open_context->flock_owner; in nfs4_copy_lock_stateid() 1042 fmode_t fmode, const struct nfs_lock_context *l_ctx, in nfs4_select_rw_stateid() argument 1051 ret = nfs4_copy_lock_stateid(dst, state, l_ctx); in nfs4_select_rw_stateid()
|
A D | internal.h | 292 int nfs_iocounter_wait(struct nfs_lock_context *l_ctx); 927 struct nfs_lock_context *l_ctx; /* Lock context info */ member
|
A D | write.c | 1188 struct nfs_lock_context *l_ctx; in nfs_flush_incompatible() local 1204 l_ctx = req->wb_lock_context; in nfs_flush_incompatible() 1207 if (l_ctx && flctx && in nfs_flush_incompatible() 1210 do_flush |= l_ctx->lockowner != current->files; in nfs_flush_incompatible()
|
A D | nfs4_fs.h | 321 const struct nfs_lock_context *l_ctx,
|
A D | nfs4proc.c | 3319 struct nfs_lock_context *l_ctx; in _nfs4_do_setattr() local 3322 l_ctx = nfs_get_lock_context(ctx); in _nfs4_do_setattr() 3323 if (IS_ERR(l_ctx)) in _nfs4_do_setattr() 3324 return PTR_ERR(l_ctx); in _nfs4_do_setattr() 3327 nfs_put_lock_context(l_ctx); in _nfs4_do_setattr() 5352 const struct nfs_lock_context *l_ctx, in nfs4_set_rw_stateid() argument 5361 const struct nfs_lock_context *l_ctx, in nfs4_stateid_is_current() argument 6835 struct nfs_lock_context *l_ctx; member 6860 p->l_ctx = nfs_get_lock_context(ctx); in nfs4_alloc_unlockdata() 6875 nfs_put_lock_context(calldata->l_ctx); in nfs4_locku_release_calldata() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | nfs_fs.h | 419 extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx);
|
Completed in 54 milliseconds