Commit 8e6333af authored by Mike Snitzer's avatar Mike Snitzer

dm vdo indexer: rename uds.h to indexer.h

Also remove unnecessary include from funnel-queue.c.
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarMatthew Sakai <msakai@redhat.com>
parent c2f54aa2
......@@ -7,10 +7,10 @@
#include "errors.h"
#include "hash-utils.h"
#include "indexer.h"
#include "logger.h"
#include "memory-alloc.h"
#include "permassert.h"
#include "uds.h"
int uds_make_open_chapter_index(struct open_chapter_index **chapter_index,
const struct index_geometry *geometry, u64 volume_nonce)
......
......@@ -7,8 +7,8 @@
#define UDS_CONFIG_H
#include "geometry.h"
#include "indexer.h"
#include "io-factory.h"
#include "uds.h"
/*
* The uds_configuration records a variety of parameters used to configure a new UDS index. Some
......
......@@ -10,8 +10,8 @@
#include <linux/bio.h>
#include <linux/list.h>
#include "indexer.h"
#include "permassert.h"
#include "uds.h"
#include "block-map.h"
#include "completion.h"
......
......@@ -126,12 +126,12 @@
#include <linux/spinlock.h>
#include <linux/timer.h>
#include "indexer.h"
#include "logger.h"
#include "memory-alloc.h"
#include "numeric.h"
#include "permassert.h"
#include "string-utils.h"
#include "uds.h"
#include "action-manager.h"
#include "admin-state.h"
......
......@@ -9,7 +9,7 @@
#include <linux/list.h>
#include <linux/timer.h>
#include "uds.h"
#include "indexer.h"
#include "admin-state.h"
#include "constants.h"
......
......@@ -13,13 +13,13 @@
#include "config.h"
#include "cpu.h"
#include "errors.h"
#include "indexer.h"
#include "logger.h"
#include "memory-alloc.h"
#include "numeric.h"
#include "permassert.h"
#include "string-utils.h"
#include "time-utils.h"
#include "uds.h"
/*
* The entries in a delta index could be stored in a single delta list, but to reduce search times
......
......@@ -11,8 +11,8 @@
#include <linux/limits.h>
#include <linux/uuid.h>
#include "indexer.h"
#include "numeric.h"
#include "uds.h"
#include "constants.h"
#include "types.h"
......
......@@ -8,7 +8,6 @@
#include "cpu.h"
#include "memory-alloc.h"
#include "permassert.h"
#include "uds.h"
int uds_make_funnel_queue(struct funnel_queue **queue_ptr)
{
......
......@@ -6,7 +6,7 @@
#ifndef UDS_REQUEST_QUEUE_H
#define UDS_REQUEST_QUEUE_H
#include "uds.h"
#include "indexer.h"
/*
* A simple request queue which will handle new requests in the order in which they are received,
......
......@@ -10,10 +10,10 @@
#include "delta-index.h"
#include "errors.h"
#include "indexer.h"
#include "logger.h"
#include "memory-alloc.h"
#include "permassert.h"
#include "uds.h"
/*
* An index volume is divided into a fixed number of fixed-size chapters, each consisting of a
......
......@@ -6,7 +6,7 @@
#ifndef UDS_INDEX_GEOMETRY_H
#define UDS_INDEX_GEOMETRY_H
#include "uds.h"
#include "indexer.h"
/*
* The index_geometry records parameters that define the layout of a UDS index volume, and the size and
......
......@@ -7,8 +7,8 @@
#define UDS_HASH_UTILS_H
#include "geometry.h"
#include "indexer.h"
#include "numeric.h"
#include "uds.h"
/* Utilities for extracting portions of a request name for various uses. */
......
......@@ -7,8 +7,8 @@
#define UDS_INDEX_LAYOUT_H
#include "config.h"
#include "indexer.h"
#include "io-factory.h"
#include "uds.h"
/*
* The index layout describes the format of the index on the underlying storage, and is responsible
......
......@@ -7,13 +7,13 @@
#include "errors.h"
#include "hash-utils.h"
#include "indexer.h"
#include "logger.h"
#include "memory-alloc.h"
#include "numeric.h"
#include "permassert.h"
#include "string-utils.h"
#include "thread-utils.h"
#include "uds.h"
/*
* The index page map is conceptually a two-dimensional array indexed by chapter number and index
......
......@@ -10,8 +10,8 @@
#include <linux/cache.h>
#include "config.h"
#include "indexer.h"
#include "thread-utils.h"
#include "uds.h"
/*
* The index session mediates all interactions with a UDS index. Once the index session is created,
......
......@@ -3,8 +3,8 @@
* Copyright 2023 Red Hat
*/
#ifndef UDS_H
#define UDS_H
#ifndef INDEXER_H
#define INDEXER_H
#include <linux/types.h>
......@@ -326,4 +326,4 @@ int __must_check uds_get_index_session_stats(struct uds_index_session *session,
/* This function will fail if any required field of the request is not set. */
int __must_check uds_launch_request(struct uds_request *request);
#endif /* UDS_H */
#endif /* INDEXER_H */
......@@ -7,7 +7,7 @@
#define UDS_SPARSE_CACHE_H
#include "geometry.h"
#include "uds.h"
#include "indexer.h"
/*
* The sparse cache is a cache of entire chapter indexes from sparse chapters used for searching
......
......@@ -9,10 +9,10 @@
#include <linux/module.h>
#include <linux/slab.h>
#include "indexer.h"
#include "logger.h"
#include "memory-alloc.h"
#include "string-utils.h"
#include "uds.h"
#define UDS_SYSFS_NAME "uds"
......
......@@ -17,12 +17,12 @@
#include "admin-state.h"
#include "encodings.h"
#include "funnel-workqueue.h"
#include "indexer.h"
#include "packer.h"
#include "physical-zone.h"
#include "statistics.h"
#include "thread-registry.h"
#include "types.h"
#include "uds.h"
enum notifier_state {
/* Notifications are allowed but not in progress */
......
......@@ -14,12 +14,12 @@
#include "errors.h"
#include "geometry.h"
#include "hash-utils.h"
#include "indexer.h"
#include "logger.h"
#include "memory-alloc.h"
#include "numeric.h"
#include "permassert.h"
#include "thread-utils.h"
#include "uds.h"
/*
* The volume index is a combination of two separate subindexes, one containing sparse hook entries
......
......@@ -10,8 +10,8 @@
#include "config.h"
#include "delta-index.h"
#include "indexer.h"
#include "thread-utils.h"
#include "uds.h"
/*
* The volume index is the primary top-level index for UDS. It contains records which map a record
......
......@@ -14,13 +14,13 @@
#include "chapter-index.h"
#include "config.h"
#include "geometry.h"
#include "indexer.h"
#include "index-layout.h"
#include "index-page-map.h"
#include "permassert.h"
#include "radix-sort.h"
#include "sparse-cache.h"
#include "thread-utils.h"
#include "uds.h"
/*
* The volume manages deduplication records on permanent storage. The term "volume" can also refer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment