btrfs-progs: move 3rd party kernel library modules to own directory
authorDavid Sterba <dsterba@suse.com>
Fri, 23 Sep 2016 14:09:33 +0000 (16:09 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Oct 2016 13:07:22 +0000 (15:07 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
12 files changed:
Makefile.in
kernel-lib/crc32c.c [moved from crc32c.c with 100% similarity]
kernel-lib/crc32c.h [moved from crc32c.h with 100% similarity]
kernel-lib/interval_tree_generic.h [moved from interval_tree_generic.h with 100% similarity]
kernel-lib/list.h [moved from list.h with 100% similarity]
kernel-lib/list_sort.c [moved from list_sort.c with 100% similarity]
kernel-lib/list_sort.h [moved from list_sort.h with 100% similarity]
kernel-lib/radix-tree.c [moved from radix-tree.c with 100% similarity]
kernel-lib/radix-tree.h [moved from radix-tree.h with 100% similarity]
kernel-lib/rbtree.c [moved from rbtree.c with 100% similarity]
kernel-lib/rbtree.h [moved from rbtree.h with 100% similarity]
kernel-lib/rbtree_augmented.h [moved from rbtree_augmented.h with 100% similarity]

index 7202cdb..20b740a 100644 (file)
@@ -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) \
similarity index 100%
rename from crc32c.c
rename to kernel-lib/crc32c.c
similarity index 100%
rename from crc32c.h
rename to kernel-lib/crc32c.h
similarity index 100%
rename from list.h
rename to kernel-lib/list.h
similarity index 100%
rename from list_sort.c
rename to kernel-lib/list_sort.c
similarity index 100%
rename from list_sort.h
rename to kernel-lib/list_sort.h
similarity index 100%
rename from radix-tree.c
rename to kernel-lib/radix-tree.c
similarity index 100%
rename from radix-tree.h
rename to kernel-lib/radix-tree.h
similarity index 100%
rename from rbtree.c
rename to kernel-lib/rbtree.c
similarity index 100%
rename from rbtree.h
rename to kernel-lib/rbtree.h