Home
last modified time | relevance | path

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

/linux/fs/nfs/
H A Ddirect.c189 if (dreq->l_ctx != NULL) in nfs_direct_req_free()
190 nfs_put_lock_context(dreq->l_ctx); in nfs_direct_req_free()
419 struct nfs_lock_context *l_ctx; in nfs_file_direct_read() local
442 l_ctx = nfs_get_lock_context(dreq->ctx); in nfs_file_direct_read()
443 if (IS_ERR(l_ctx)) { in nfs_file_direct_read()
444 result = PTR_ERR(l_ctx); in nfs_file_direct_read()
448 dreq->l_ctx = l_ctx; in nfs_file_direct_read()
985 struct nfs_lock_context *l_ctx; in nfs_file_direct_write() local
1015 l_ctx = nfs_get_lock_context(dreq->ctx); in nfs_file_direct_write()
1016 if (IS_ERR(l_ctx)) { in nfs_file_direct_write()
[all …]
H A Dfile.c862 struct nfs_lock_context *l_ctx; in do_unlk() local
871 l_ctx = nfs_get_lock_context(nfs_file_open_context(filp)); in do_unlk()
872 if (!IS_ERR(l_ctx)) { in do_unlk()
873 status = nfs_iocounter_wait(l_ctx); in do_unlk()
874 nfs_put_lock_context(l_ctx); in do_unlk()
H A Dinode.c1093 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) in nfs_init_lock_context() argument
1095 refcount_set(&l_ctx->count, 1); in nfs_init_lock_context()
1096 l_ctx->lockowner = current->files; in nfs_init_lock_context()
1097 INIT_LIST_HEAD(&l_ctx->list); in nfs_init_lock_context()
1098 atomic_set(&l_ctx->io_count, 0); in nfs_init_lock_context()
1146 void nfs_put_lock_context(struct nfs_lock_context *l_ctx) in nfs_put_lock_context() argument
1148 struct nfs_open_context *ctx = l_ctx->open_context; in nfs_put_lock_context()
1151 if (!refcount_dec_and_lock(&l_ctx->count, &inode->i_lock)) in nfs_put_lock_context()
1153 list_del_rcu(&l_ctx->list); in nfs_put_lock_context()
1156 kfree_rcu(l_ctx, rcu_head); in nfs_put_lock_context()
H A Dnfs4state.c955 const struct nfs_lock_context *l_ctx) in nfs4_copy_lock_stateid() argument
961 if (l_ctx == NULL) in nfs4_copy_lock_stateid()
967 owner = l_ctx->lockowner; in nfs4_copy_lock_stateid()
968 fl_flock_owner = l_ctx->open_context->flock_owner; in nfs4_copy_lock_stateid()
1008 fmode_t fmode, const struct nfs_lock_context *l_ctx, in nfs4_select_rw_stateid() argument
1017 ret = nfs4_copy_lock_stateid(dst, state, l_ctx); in nfs4_select_rw_stateid()
H A Dwrite.c1121 struct nfs_lock_context *l_ctx; in nfs_flush_incompatible() local
1137 l_ctx = req->wb_lock_context; in nfs_flush_incompatible()
1140 if (l_ctx && flctx && in nfs_flush_incompatible()
1143 do_flush |= l_ctx->lockowner != current->files; in nfs_flush_incompatible()
H A Dinternal.h307 int nfs_iocounter_wait(struct nfs_lock_context *l_ctx);
989 struct nfs_lock_context *l_ctx; /* Lock context info */ member
H A Dnfs4proc.c3352 struct nfs_lock_context *l_ctx; in _nfs4_do_setattr() local
3355 l_ctx = nfs_get_lock_context(ctx); in _nfs4_do_setattr()
3356 if (IS_ERR(l_ctx)) in _nfs4_do_setattr()
3357 return PTR_ERR(l_ctx); in _nfs4_do_setattr()
3358 status = nfs4_select_rw_stateid(ctx->state, FMODE_WRITE, l_ctx, in _nfs4_do_setattr()
3360 nfs_put_lock_context(l_ctx); in _nfs4_do_setattr()
5615 const struct nfs_lock_context *l_ctx, in nfs4_set_rw_stateid() argument
5618 return nfs4_select_rw_stateid(ctx->state, fmode, l_ctx, stateid, NULL); in nfs4_set_rw_stateid()
5624 const struct nfs_lock_context *l_ctx, in nfs4_stateid_is_current() argument
5630 if (nfs4_set_rw_stateid(&_current_stateid, ctx, l_ctx, fmode) == -EIO) in nfs4_stateid_is_current()
[all …]
/linux/include/linux/
H A Dnfs_fs.h464 extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx);