From 1200be31e634521783dd93441989e0fceb4ef006 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 23 Sep 2016 16:09:33 +0200 Subject: [PATCH] btrfs-progs: move 3rd party kernel library modules to own directory Signed-off-by: David Sterba --- Makefile.in | 14 +++++++++----- crc32c.c => kernel-lib/crc32c.c | 0 crc32c.h => kernel-lib/crc32c.h | 0 .../interval_tree_generic.h | 0 list.h => kernel-lib/list.h | 0 list_sort.c => kernel-lib/list_sort.c | 0 list_sort.h => kernel-lib/list_sort.h | 0 radix-tree.c => kernel-lib/radix-tree.c | 0 radix-tree.h => kernel-lib/radix-tree.h | 0 rbtree.c => kernel-lib/rbtree.c | 0 rbtree.h => kernel-lib/rbtree.h | 0 .../rbtree_augmented.h | 0 12 files changed, 9 insertions(+), 5 deletions(-) rename crc32c.c => kernel-lib/crc32c.c (100%) rename crc32c.h => kernel-lib/crc32c.h (100%) rename interval_tree_generic.h => kernel-lib/interval_tree_generic.h (100%) rename list.h => kernel-lib/list.h (100%) rename list_sort.c => kernel-lib/list_sort.c (100%) rename list_sort.h => kernel-lib/list_sort.h (100%) rename radix-tree.c => kernel-lib/radix-tree.c (100%) rename radix-tree.h => kernel-lib/radix-tree.h (100%) rename rbtree.c => kernel-lib/rbtree.c (100%) rename rbtree.h => kernel-lib/rbtree.h (100%) rename rbtree_augmented.h => kernel-lib/rbtree_augmented.h (100%) diff --git a/Makefile.in b/Makefile.in index 7202cdb5..20b740a0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -61,6 +61,7 @@ CFLAGS = @CFLAGS@ \ -fno-strict-aliasing \ -fPIC \ -I$(TOPDIR) \ + -I$(TOPDIR)/kernel-lib \ $(EXTRAWARN_CFLAGS) \ $(DEBUG_CFLAGS_INTERNAL) \ $(EXTRA_CFLAGS) @@ -86,10 +87,10 @@ CHECKER_FLAGS := -include $(check_defs) -D__CHECKER__ \ -D__CHECK_ENDIAN__ -Wbitwise -Wuninitialized -Wshadow -Wundef \ -U_FORTIFY_SOURCE -objects = ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \ +objects = ctree.o disk-io.o kernel-lib/radix-tree.o extent-tree.o print-tree.o \ root-tree.o dir-item.o file-item.o inode-item.o inode-map.o \ extent-cache.o extent_io.o volumes.o utils.o repair.o \ - qgroup.o raid6.o free-space-cache.o list_sort.o props.o \ + qgroup.o raid6.o free-space-cache.o kernel-lib/list_sort.o props.o \ ulist.o qgroup-verify.o backref.o string-table.o task-utils.o \ inode.o file.o find-root.o free-space-tree.o help.o cmds_objects = cmds-subvolume.o cmds-filesystem.o cmds-device.o cmds-scrub.o \ @@ -98,10 +99,12 @@ 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 -libbtrfs_objects = send-stream.o send-utils.o rbtree.o btrfs-list.o crc32c.o \ +libbtrfs_objects = send-stream.o send-utils.o kernel-lib/rbtree.o btrfs-list.o \ + kernel-lib/crc32c.o \ uuid-tree.o utils-lib.o rbtree-utils.o -libbtrfs_headers = send-stream.h send-utils.h send.h rbtree.h btrfs-list.h \ - crc32c.h list.h kerncompat.h radix-tree.h extent-cache.h \ +libbtrfs_headers = send-stream.h send-utils.h send.h kernel-lib/rbtree.h btrfs-list.h \ + kernel-lib/crc32c.h kernel-lib/list.h kerncompat.h \ + kernel-lib/radix-tree.h extent-cache.h \ extent_io.h ioctl.h ctree.h btrfsck.h version.h TESTS = fsck-tests.sh convert-tests.sh @@ -422,6 +425,7 @@ clean-all: clean clean-doc clean-gen clean: $(CLEANDIRS) @echo "Cleaning" $(Q)$(RM) -f $(progs) cscope.out *.o *.o.d \ + kernel-lib/*.o kernel-lib/*.o.d \ dir-test ioctl-test quick-test send-test library-test library-test-static \ btrfs.static mkfs.btrfs.static \ $(check_defs) \ diff --git a/crc32c.c b/kernel-lib/crc32c.c similarity index 100% rename from crc32c.c rename to kernel-lib/crc32c.c diff --git a/crc32c.h b/kernel-lib/crc32c.h similarity index 100% rename from crc32c.h rename to kernel-lib/crc32c.h diff --git a/interval_tree_generic.h b/kernel-lib/interval_tree_generic.h similarity index 100% rename from interval_tree_generic.h rename to kernel-lib/interval_tree_generic.h diff --git a/list.h b/kernel-lib/list.h similarity index 100% rename from list.h rename to kernel-lib/list.h diff --git a/list_sort.c b/kernel-lib/list_sort.c similarity index 100% rename from list_sort.c rename to kernel-lib/list_sort.c diff --git a/list_sort.h b/kernel-lib/list_sort.h similarity index 100% rename from list_sort.h rename to kernel-lib/list_sort.h diff --git a/radix-tree.c b/kernel-lib/radix-tree.c similarity index 100% rename from radix-tree.c rename to kernel-lib/radix-tree.c diff --git a/radix-tree.h b/kernel-lib/radix-tree.h similarity index 100% rename from radix-tree.h rename to kernel-lib/radix-tree.h diff --git a/rbtree.c b/kernel-lib/rbtree.c similarity index 100% rename from rbtree.c rename to kernel-lib/rbtree.c diff --git a/rbtree.h b/kernel-lib/rbtree.h similarity index 100% rename from rbtree.h rename to kernel-lib/rbtree.h diff --git a/rbtree_augmented.h b/kernel-lib/rbtree_augmented.h similarity index 100% rename from rbtree_augmented.h rename to kernel-lib/rbtree_augmented.h