Searched refs:l_ctx (Results 1 - 8 of 8) sorted by relevance
/linux-4.4.14/fs/nfs/ |
H A D | direct.c | 78 struct nfs_lock_context *l_ctx; /* Lock context info */ member in struct:nfs_direct_req 328 if (dreq->l_ctx != NULL) nfs_direct_req_free() 329 nfs_put_lock_context(dreq->l_ctx); nfs_direct_req_free() 577 struct nfs_lock_context *l_ctx; nfs_file_direct_read() local 605 l_ctx = nfs_get_lock_context(dreq->ctx); nfs_file_direct_read() 606 if (IS_ERR(l_ctx)) { nfs_file_direct_read() 607 result = PTR_ERR(l_ctx); nfs_file_direct_read() 610 dreq->l_ctx = l_ctx; nfs_file_direct_read() 968 struct nfs_lock_context *l_ctx; nfs_file_direct_write() local 1004 l_ctx = nfs_get_lock_context(dreq->ctx); nfs_file_direct_write() 1005 if (IS_ERR(l_ctx)) { nfs_file_direct_write() 1006 result = PTR_ERR(l_ctx); nfs_file_direct_write() 1009 dreq->l_ctx = l_ctx; nfs_file_direct_write()
|
H A D | pagelist.c | 357 struct nfs_lock_context *l_ctx; nfs_create_request() local 367 l_ctx = nfs_get_lock_context(ctx); nfs_create_request() 368 if (IS_ERR(l_ctx)) { nfs_create_request() 370 return ERR_CAST(l_ctx); nfs_create_request() 372 req->wb_lock_context = l_ctx; nfs_create_request() 373 nfs_iocounter_inc(&l_ctx->io_count); nfs_create_request() 427 struct nfs_lock_context *l_ctx = req->wb_lock_context; nfs_clear_request() local 433 if (l_ctx != NULL) { nfs_clear_request() 434 nfs_iocounter_dec(&l_ctx->io_count); nfs_clear_request() 435 nfs_put_lock_context(l_ctx); nfs_clear_request()
|
H A D | inode.c | 696 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) nfs_init_lock_context() argument 698 atomic_set(&l_ctx->count, 1); nfs_init_lock_context() 699 l_ctx->lockowner.l_owner = current->files; nfs_init_lock_context() 700 l_ctx->lockowner.l_pid = current->tgid; nfs_init_lock_context() 701 INIT_LIST_HEAD(&l_ctx->list); nfs_init_lock_context() 702 nfs_iocounter_init(&l_ctx->io_count); nfs_init_lock_context() 749 void nfs_put_lock_context(struct nfs_lock_context *l_ctx) nfs_put_lock_context() argument 751 struct nfs_open_context *ctx = l_ctx->open_context; nfs_put_lock_context() 754 if (!atomic_dec_and_lock(&l_ctx->count, &inode->i_lock)) nfs_put_lock_context() 756 list_del(&l_ctx->list); nfs_put_lock_context() 758 kfree(l_ctx); nfs_put_lock_context()
|
H A D | file.c | 748 struct nfs_lock_context *l_ctx; do_unlk() local 757 l_ctx = nfs_get_lock_context(nfs_file_open_context(filp)); do_unlk() 758 if (!IS_ERR(l_ctx)) { do_unlk() 759 status = nfs_iocounter_wait(&l_ctx->io_count); do_unlk() 760 nfs_put_lock_context(l_ctx); do_unlk()
|
H A D | write.c | 1114 struct nfs_lock_context *l_ctx; nfs_flush_incompatible() local 1130 l_ctx = req->wb_lock_context; nfs_flush_incompatible() 1134 if (l_ctx && flctx && nfs_flush_incompatible() 1137 do_flush |= l_ctx->lockowner.l_owner != current->files nfs_flush_incompatible() 1138 || l_ctx->lockowner.l_pid != current->tgid; nfs_flush_incompatible()
|
H A D | nfs4_fs.h | 260 const struct nfs_lock_context *l_ctx,
|
H A D | nfs4proc.c | 4275 const struct nfs_lock_context *l_ctx, nfs4_set_rw_stateid() 4280 if (l_ctx != NULL) nfs4_set_rw_stateid() 4281 lockowner = &l_ctx->lockowner; nfs4_set_rw_stateid() 4288 const struct nfs_lock_context *l_ctx, nfs4_stateid_is_current() 4294 if (nfs4_set_rw_stateid(¤t_stateid, ctx, l_ctx, fmode) == -EIO) nfs4_stateid_is_current() 4273 nfs4_set_rw_stateid(nfs4_stateid *stateid, const struct nfs_open_context *ctx, const struct nfs_lock_context *l_ctx, fmode_t fmode) nfs4_set_rw_stateid() argument 4286 nfs4_stateid_is_current(nfs4_stateid *stateid, const struct nfs_open_context *ctx, const struct nfs_lock_context *l_ctx, fmode_t fmode) nfs4_stateid_is_current() argument
|
/linux-4.4.14/include/linux/ |
H A D | nfs_fs.h | 375 extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx);
|
Completed in 255 milliseconds