Skip to content

Commit abb670f

Browse files
committed
btrfs-progs: move ctree.c to kernel-shared/
Signed-off-by: David Sterba <dsterba@suse.com>
1 parent c03619b commit abb670f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+93
-90
lines changed

Android.mk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ STATIC_LIBS := -luuid -lblkid -luuid -lz -llzo2 -L. -pthread
1717
btrfs_shared_libraries := libext2_uuid \
1818
libext2_blkid
1919

20-
objects := ctree.c kernel-shared/disk-io.c kernel-lib/radix-tree.c kernel-shared/extent-tree.c \
21-
kernel-shared/print-tree.c \
20+
objects := kernel-shared/ctree.c kernel-shared/disk-io.c kernel-lib/radix-tree.c \
21+
kernel-shared/extent-tree.c kernel-shared/print-tree.c \
2222
root-tree.c dir-item.c file-item.c inode-item.c inode-map.c \
2323
common/extent-cache.c kernel-shared/extent_io.c volumes.c utils.c repair.c \
2424
qgroup.c kernel-shared/free-space-cache.c kernel-lib/list_sort.c props.c \
@@ -38,7 +38,8 @@ libbtrfs_objects := common/send-stream.c common/send-utils.c kernel-lib/rbtree.c
3838
libbtrfs_headers := common/send-stream.h common/send-utils.h send.h kernel-lib/rbtree.h btrfs-list.h \
3939
crypto/crc32c.h kernel-lib/list.h kerncompat.h \
4040
kernel-lib/radix-tree.h kernel-lib/sizes.h kernel-lib/raid56.h \
41-
common/extent-cache.h kernel-shared/extent_io.h ioctl.h ctree.h btrfsck.h version.h
41+
common/extent-cache.h kernel-shared/extent_io.h ioctl.h \
42+
kernel-shared/ctree.h btrfsck.h version.h
4243
blkid_objects := partition/ superblocks/ topology/
4344

4445

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ libbtrfs_objects = common/send-stream.o common/send-utils.o kernel-lib/rbtree.o
163163
kernel-lib/radix-tree.o common/extent-cache.o kernel-shared/extent_io.o \
164164
crypto/crc32c.o common/messages.o \
165165
kernel-shared/uuid-tree.o common/utils-lib.o common/rbtree-utils.o \
166-
ctree.o kernel-shared/disk-io.o kernel-shared/extent-tree.o kernel-shared/delayed-ref.o \
166+
kernel-shared/ctree.o kernel-shared/disk-io.o \
167+
kernel-shared/extent-tree.o kernel-shared/delayed-ref.o \
167168
kernel-shared/print-tree.o \
168169
kernel-shared/free-space-cache.o kernel-shared/root-tree.o volumes.o transaction.o \
169170
kernel-shared/free-space-tree.o repair.o kernel-shared/inode-item.o \
@@ -175,7 +176,8 @@ libbtrfs_objects = common/send-stream.o common/send-utils.o kernel-lib/rbtree.o
175176
libbtrfs_headers = common/send-stream.h common/send-utils.h send.h kernel-lib/rbtree.h btrfs-list.h \
176177
crypto/crc32c.h kernel-lib/list.h kerncompat.h \
177178
kernel-lib/radix-tree.h kernel-lib/sizes.h kernel-lib/raid56.h \
178-
common/extent-cache.h kernel-shared/extent_io.h ioctl.h ctree.h btrfsck.h version.h
179+
common/extent-cache.h kernel-shared/extent_io.h ioctl.h \
180+
kernel-shared/ctree.h btrfsck.h version.h
179181
libbtrfsutil_major := $(shell sed -rn 's/^\#define BTRFS_UTIL_VERSION_MAJOR ([0-9])+$$/\1/p' libbtrfsutil/btrfsutil.h)
180182
libbtrfsutil_minor := $(shell sed -rn 's/^\#define BTRFS_UTIL_VERSION_MINOR ([0-9])+$$/\1/p' libbtrfsutil/btrfsutil.h)
181183
libbtrfsutil_patch := $(shell sed -rn 's/^\#define BTRFS_UTIL_VERSION_PATCH ([0-9])+$$/\1/p' libbtrfsutil/btrfsutil.h)
@@ -611,15 +613,15 @@ quick-test: quick-test.o $(objects) $(libs)
611613
@echo " [LD] $@"
612614
$(Q)$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
613615

614-
ioctl-test.o: tests/ioctl-test.c ioctl.h kerncompat.h ctree.h
616+
ioctl-test.o: tests/ioctl-test.c ioctl.h kerncompat.h kernel-shared/ctree.h
615617
@echo " [CC] $@"
616618
$(Q)$(CC) $(CFLAGS) -c $< -o $@
617619

618-
ioctl-test-32.o: tests/ioctl-test.c ioctl.h kerncompat.h ctree.h
620+
ioctl-test-32.o: tests/ioctl-test.c ioctl.h kerncompat.h kernel-shared/ctree.h
619621
@echo " [CC32] $@"
620622
$(Q)$(CC) $(CFLAGS) -m32 -c $< -o $@
621623

622-
ioctl-test-64.o: tests/ioctl-test.c ioctl.h kerncompat.h ctree.h
624+
ioctl-test-64.o: tests/ioctl-test.c ioctl.h kerncompat.h kernel-shared/ctree.h
623625
@echo " [CC64] $@"
624626
$(Q)$(CC) $(CFLAGS) -m64 -c $< -o $@
625627

btrfs-corrupt-block.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <limits.h>
2525

2626
#include "kerncompat.h"
27-
#include "ctree.h"
27+
#include "kernel-shared/ctree.h"
2828
#include "volumes.h"
2929
#include "kernel-shared/disk-io.h"
3030
#include "kernel-shared/print-tree.h"

btrfs-find-root.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <getopt.h>
2626

2727
#include "kerncompat.h"
28-
#include "ctree.h"
28+
#include "kernel-shared/ctree.h"
2929
#include "kernel-shared/disk-io.h"
3030
#include "kernel-shared/print-tree.h"
3131
#include "transaction.h"

btrfs-fragments.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#undef ULONG_MAX
3434

3535
#include "kerncompat.h"
36-
#include "ctree.h"
36+
#include "kernel-shared/ctree.h"
3737
#include "ioctl.h"
3838
#include "common/utils.h"
3939

btrfs-list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <unistd.h>
2727
#include <dirent.h>
2828
#include <libgen.h>
29-
#include "ctree.h"
29+
#include "kernel-shared/ctree.h"
3030
#include "transaction.h"
3131
#include "common/utils.h"
3232
#include "ioctl.h"

btrfs-map-logical.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <unistd.h>
2323
#include <getopt.h>
2424
#include "kerncompat.h"
25-
#include "ctree.h"
25+
#include "kernel-shared/ctree.h"
2626
#include "volumes.h"
2727
#include "kernel-shared/disk-io.h"
2828
#include "kernel-shared/print-tree.h"

btrfs-select-super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <fcntl.h>
2323
#include <sys/stat.h>
2424
#include "kerncompat.h"
25-
#include "ctree.h"
25+
#include "kernel-shared/ctree.h"
2626
#include "volumes.h"
2727
#include "kernel-shared/disk-io.h"
2828
#include "kernel-shared/print-tree.h"

btrfsck.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#if BTRFS_FLAT_INCLUDES
2424
#include "kerncompat.h"
25-
#include "ctree.h"
25+
#include "kernel-shared/ctree.h"
2626
#include "common/extent-cache.h"
2727
#include "kernel-lib/list.h"
2828
#else

btrfstune.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <getopt.h>
2828

2929
#include "kerncompat.h"
30-
#include "ctree.h"
30+
#include "kernel-shared/ctree.h"
3131
#include "kernel-shared/disk-io.h"
3232
#include "transaction.h"
3333
#include "common/utils.h"

0 commit comments

Comments
 (0)