btrfs-progs: check: rename files after moving code
authorDavid Sterba <dsterba@suse.com>
Thu, 1 Feb 2018 16:14:42 +0000 (17:14 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 2 Feb 2018 15:01:59 +0000 (16:01 +0100)
Add prefixes to the files so it's clear they belong to the mode group.

Signed-off-by: David Sterba <dsterba@suse.com>
Makefile
check/main.c
check/mode-common.c [moved from check/common.c with 99% similarity]
check/mode-common.h [moved from check/common.h with 97% similarity]
check/mode-lowmem.c [moved from check/lowmem.c with 99% similarity]
check/mode-lowmem.h [moved from check/lowmem.h with 96% similarity]
check/mode-original.h [moved from check/original.h with 98% similarity]

index d30f1d2..327cdfa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -113,7 +113,7 @@ cmds_objects = cmds-subvolume.o cmds-filesystem.o cmds-device.o cmds-scrub.o \
               cmds-restore.o cmds-rescue.o chunk-recover.o super-recover.o \
               cmds-property.o cmds-fi-usage.o cmds-inspect-dump-tree.o \
               cmds-inspect-dump-super.o cmds-inspect-tree-stats.o cmds-fi-du.o \
-              mkfs/common.o check/common.o check/lowmem.o
+              mkfs/common.o check/mode-common.o check/mode-lowmem.o
 libbtrfs_objects = send-stream.o send-utils.o kernel-lib/rbtree.o btrfs-list.o \
                   kernel-lib/crc32c.o messages.o \
                   uuid-tree.o utils-lib.o rbtree-utils.o
index b4ecd5e..c051a86 100644 (file)
@@ -43,9 +43,9 @@
 #include "kernel-shared/ulist.h"
 #include "hash.h"
 #include "help.h"
-#include "check/original.h"
-#include "check/lowmem.h"
-#include "check/common.h"
+#include "check/mode-common.h"
+#include "check/mode-original.h"
+#include "check/mode-lowmem.h"
 
 enum task_position {
        TASK_EXTENTS,
similarity index 99%
rename from check/common.c
rename to check/mode-common.c
index d6abf6d..1b56a96 100644 (file)
@@ -21,7 +21,7 @@
 #include "transaction.h"
 #include "utils.h"
 #include "disk-io.h"
-#include "check/common.h"
+#include "check/mode-common.h"
 
 /*
  * Search in csum tree to find how many bytes of range [@start, @start + @len)
similarity index 97%
rename from check/common.h
rename to check/mode-common.h
index 09745af..ffae782 100644 (file)
@@ -18,8 +18,8 @@
  * Defines and function declarations for code shared by both lowmem and
  * original mode
  */
-#ifndef __BTRFS_CHECK_COMMON_H__
-#define __BTRFS_CHECK_COMMON_H__
+#ifndef __BTRFS_CHECK_MODE_COMMON_H__
+#define __BTRFS_CHECK_MODE_COMMON_H__
 
 #include <sys/stat.h>
 #include "ctree.h"
similarity index 99%
rename from check/lowmem.c
rename to check/mode-lowmem.c
index d2099fc..62bcf3d 100644 (file)
@@ -25,8 +25,8 @@
 #include "internal.h"
 #include "utils.h"
 #include "volumes.h"
-#include "check/common.h"
-#include "check/lowmem.h"
+#include "check/mode-common.h"
+#include "check/mode-lowmem.h"
 
 static int calc_extent_flag(struct btrfs_root *root, struct extent_buffer *eb,
                            u64 *flags_ret)
similarity index 96%
rename from check/lowmem.h
rename to check/mode-lowmem.h
index 39deff0..73d5799 100644 (file)
 /*
  * Defines and function declarations for lowmem mode check.
  */
-#ifndef __BTRFS_CHECK_LOWMEM_H__
-#define __BTRFS_CHECK_LOWMEM_H__
+#ifndef __BTRFS_CHECK_MODE_LOWMEM_H__
+#define __BTRFS_CHECK_MODE_LOWMEM_H__
 
-#include "check/common.h"
+#include "check/mode-common.h"
 
 #define ROOT_DIR_ERROR         (1<<1)  /* bad ROOT_DIR */
 #define DIR_ITEM_MISSING       (1<<2)  /* DIR_ITEM not found */
similarity index 98%
rename from check/original.h
rename to check/mode-original.h
index 0d9ab35..f859af4 100644 (file)
@@ -18,8 +18,9 @@
  * Defines and function declarations for original mode check.
  */
 
-#ifndef __BTRFS_CHECK_ORIGINAL_H__
-#define __BTRFS_CHECK_ORIGINAL_H__
+#ifndef __BTRFS_CHECK_MODE_ORIGINAL_H__
+#define __BTRFS_CHECK_MODE_ORIGINAL_H__
+
 #include "rbtree-utils.h"
 
 struct extent_backref {