]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dm vdo indexer: rename uds.h to indexer.h
authorMike Snitzer <snitzer@kernel.org>
Fri, 9 Feb 2024 18:16:13 +0000 (12:16 -0600)
committerMike Snitzer <snitzer@kernel.org>
Fri, 1 Mar 2024 14:25:49 +0000 (09:25 -0500)
Also remove unnecessary include from funnel-queue.c.

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
22 files changed:
drivers/md/dm-vdo/chapter-index.c
drivers/md/dm-vdo/config.h
drivers/md/dm-vdo/data-vio.h
drivers/md/dm-vdo/dedupe.c
drivers/md/dm-vdo/dedupe.h
drivers/md/dm-vdo/delta-index.c
drivers/md/dm-vdo/encodings.h
drivers/md/dm-vdo/funnel-queue.c
drivers/md/dm-vdo/funnel-requestqueue.h
drivers/md/dm-vdo/geometry.c
drivers/md/dm-vdo/geometry.h
drivers/md/dm-vdo/hash-utils.h
drivers/md/dm-vdo/index-layout.h
drivers/md/dm-vdo/index-page-map.c
drivers/md/dm-vdo/index-session.h
drivers/md/dm-vdo/indexer.h [moved from drivers/md/dm-vdo/uds.h with 99% similarity]
drivers/md/dm-vdo/sparse-cache.h
drivers/md/dm-vdo/uds-sysfs.c
drivers/md/dm-vdo/vdo.h
drivers/md/dm-vdo/volume-index.c
drivers/md/dm-vdo/volume-index.h
drivers/md/dm-vdo/volume.h

index 363991d56218325487d8db6a84344d92ca40e237..9b9185c2c2374ac2629ffc0481fe8bce2b60ba84 100644 (file)
@@ -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)
index 7d19863800d6b011d292d7f61d90bd1e3f5d9692..08507dc2f7a14723e9b28aa098057332ef878be0 100644 (file)
@@ -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
index 78744d064e9638fd6b61d6cde1fce89d5537d674..e7729623a6bb53a5107f34d8b3798f85e064aa3c 100644 (file)
@@ -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"
index 2a1902c4423c5a744dbac2ad1b6aca7a481e983f..942a50ef8b0d82cfbefecf3b2807377c81ecefe9 100644 (file)
 #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"
index 773dde5f93654be11330f470b2a28a3c745cabfa..1566fc972ea74cdefaf647c44244ccbdde6bec40 100644 (file)
@@ -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"
index 6306777bb20288bbef9e2c368fbf08faae4b508c..66f51b5f8fd21d9ddf58b7344d3871654d56736c 100644 (file)
 #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
index ba3db9867f4a8e1f1a2a96ce58ab9fd8ed96ded8..18794fd59b0bbb04e2830079c338ce846690e326 100644 (file)
@@ -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"
index 6940b282086d68c6bf9d817a39af24e78f50a672..d5d96bb38b947d0c306a9a7bb6143ee94cda9c3b 100644 (file)
@@ -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)
 {
index e74c231fe2690c101f33b347de70e7a7d2c4bba4..9b0f53939b4dd027023a3bd16599eb52764f289b 100644 (file)
@@ -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,
index 0e83bba4184ab2cdffa9a9831cd8a8162d5cbb3e..04c07195a01c68d51b275d5e4512a18d16469210 100644 (file)
 
 #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
index 9a4a66ac2e467b19c6f6474fbd182d81ffda2f52..a2ecdb238cf2dfd4fcbd1321527db716ab04d951 100644 (file)
@@ -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
index e22be69695beb42df7429917d3ae871f00fdb6f8..e3b865bbe9b2cf98412476bca1f1488e476bb5af 100644 (file)
@@ -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. */
 
index 84a9eb43a49db668775dbf41f70f19ca78a0b06f..e9ac6f4302d632d09db1b84a75adf517e4ef6b52 100644 (file)
@@ -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
index 8441f86ef3a4e0efa262d6afd4caf3641d2416d2..1bb12066ad1a2321c443a8d426d81d39839974cb 100644 (file)
@@ -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
index 62a9020dd9fa84bc4065eb3a505660422b127e84..733d10f8a56cd2e6ba6b81cbfc6c453da4bf790b 100644 (file)
@@ -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,
similarity index 99%
rename from drivers/md/dm-vdo/uds.h
rename to drivers/md/dm-vdo/indexer.h
index 1264362f83725b1bd934b8a31bff17e6e8cb52fb..59e6a5ca2acb3d54ccbf0bd218df6f6f6eb1c7f8 100644 (file)
@@ -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 */
index 90b0be15545396b4f4d2db12aea853590697604b..45e2dcf165b51db17c2934ab2f2b4735c759b074 100644 (file)
@@ -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
index eee8a5b7d147d6b6dd88e6a8f882b4660376151e..1548092e7de1db60c9493050987db49bf25600a3 100644 (file)
@@ -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"
 
index 772317e6db52bd37d33514b5019641a59a6f30db..3938e519ae6a5747b4b052e226f529fb6cfd6a47 100644 (file)
 #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 */
index daeafe7691eaee50392857dd1f65266823a43f55..39c4be06780f6afaf4b875651e8e0ba37591c854 100644 (file)
 #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
index 2eb2cee7ee5884f2b3079b6965c178f14210daa7..66bf14fddc90642a3731e63f2604305e6d17243b 100644 (file)
@@ -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
index 7ef9945d84031f59fd2289bd3825aa997250b536..290de5cbf9ec86a0d7af6ce9dfbe576ccf834026 100644 (file)
 #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