From c19ac510a7bad3870114c81ecb6766cc0a9d09e4 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 30 Apr 2021 22:04:03 +0200 Subject: [PATCH] btrfs-progs: move repair.[ch] to common/ Move the file to common as it's used by several parts, while still keeping the name 'repair' although the only thing it does is adding a corrupted extent. Signed-off-by: David Sterba --- Makefile | 2 +- check/main.c | 2 +- check/mode-common.c | 2 +- check/mode-lowmem.c | 2 +- check/qgroup-verify.c | 2 +- repair.c => common/repair.c | 2 +- repair.h => common/repair.h | 0 kernel-shared/ctree.c | 2 +- 8 files changed, 7 insertions(+), 7 deletions(-) rename repair.c => common/repair.c (98%) rename repair.h => common/repair.h (100%) diff --git a/Makefile b/Makefile index d79b5d5c..2ff738cf 100644 --- a/Makefile +++ b/Makefile @@ -168,7 +168,7 @@ libbtrfs_objects = common/send-stream.o common/send-utils.o kernel-lib/rbtree.o kernel-shared/print-tree.o \ kernel-shared/free-space-cache.o kernel-shared/root-tree.o \ kernel-shared/volumes.o kernel-shared/transaction.o \ - kernel-shared/free-space-tree.o repair.o kernel-shared/inode-item.o \ + kernel-shared/free-space-tree.o common/repair.o kernel-shared/inode-item.o \ kernel-shared/file-item.o kernel-shared/zoned.o \ kernel-lib/raid56.o kernel-lib/tables.o \ common/device-scan.o common/path-utils.o \ diff --git a/check/main.c b/check/main.c index 5ad2d211..74590cda 100644 --- a/check/main.c +++ b/check/main.c @@ -28,7 +28,7 @@ #include #include "kernel-shared/ctree.h" #include "kernel-shared/volumes.h" -#include "repair.h" +#include "common/repair.h" #include "kernel-shared/disk-io.h" #include "kernel-shared/print-tree.h" #include "common/task-utils.h" diff --git a/check/mode-common.c b/check/mode-common.c index ef77b060..cb22f323 100644 --- a/check/mode-common.c +++ b/check/mode-common.c @@ -21,7 +21,7 @@ #include "kernel-shared/transaction.h" #include "common/utils.h" #include "kernel-shared/disk-io.h" -#include "repair.h" +#include "common/repair.h" #include "check/mode-common.h" /* diff --git a/check/mode-lowmem.c b/check/mode-lowmem.c index 2531fde8..2f736712 100644 --- a/check/mode-lowmem.c +++ b/check/mode-lowmem.c @@ -16,7 +16,7 @@ #include #include "kernel-shared/ctree.h" -#include "repair.h" +#include "common/repair.h" #include "kernel-shared/transaction.h" #include "common/messages.h" #include "kernel-shared/disk-io.h" diff --git a/check/qgroup-verify.c b/check/qgroup-verify.c index 6a1e6847..14645c85 100644 --- a/check/qgroup-verify.c +++ b/check/qgroup-verify.c @@ -30,7 +30,7 @@ #include "kernel-shared/ulist.h" #include "common/rbtree-utils.h" #include "kernel-shared/transaction.h" -#include "repair.h" +#include "common/repair.h" #include "qgroup-verify.h" diff --git a/repair.c b/common/repair.c similarity index 98% rename from repair.c rename to common/repair.c index b84bcb2e..6eed7cec 100644 --- a/repair.c +++ b/common/repair.c @@ -19,7 +19,7 @@ #include "kernel-shared/ctree.h" #include "common/extent-cache.h" #include "common/utils.h" -#include "repair.h" +#include "common/repair.h" int repair = 0; diff --git a/repair.h b/common/repair.h similarity index 100% rename from repair.h rename to common/repair.h diff --git a/kernel-shared/ctree.c b/kernel-shared/ctree.c index 3a82286c..62c206a4 100644 --- a/kernel-shared/ctree.c +++ b/kernel-shared/ctree.c @@ -19,7 +19,7 @@ #include "kernel-shared/disk-io.h" #include "kernel-shared/transaction.h" #include "kernel-shared/print-tree.h" -#include "repair.h" +#include "common/repair.h" #include "common/internal.h" #include "common/messages.h" #include "common/utils.h"