Lines Matching refs:l_ctx
538 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx)
540 atomic_set(&l_ctx->count, 1);
541 l_ctx->lockowner = current->files;
542 l_ctx->pid = current->tgid;
543 INIT_LIST_HEAD(&l_ctx->list);
588 void nfs_put_lock_context(struct nfs_lock_context *l_ctx)
590 struct nfs_open_context *ctx = l_ctx->open_context;
593 if (!atomic_dec_and_lock(&l_ctx->count, &inode->i_lock))
595 list_del(&l_ctx->list);
597 kfree(l_ctx);