Lines Matching refs:l_ctx
883 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx)
885 refcount_set(&l_ctx->count, 1);
886 l_ctx->lockowner = current->files;
887 INIT_LIST_HEAD(&l_ctx->list);
888 atomic_set(&l_ctx->io_count, 0);
936 void nfs_put_lock_context(struct nfs_lock_context *l_ctx)
938 struct nfs_open_context *ctx = l_ctx->open_context;
941 if (!refcount_dec_and_lock(&l_ctx->count, &inode->i_lock))
943 list_del_rcu(&l_ctx->list);
946 kfree_rcu(l_ctx, rcu_head);