Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit c651fe9

Browse files
author
Prasanna Dattatraya Kulkarni
authored
CORTX-33757: Move new btree code files to be directory (#2025)
Problem: Currently new btree code resides in btree directory, move the new btree code to 'be' directory and rename internal.h -> btree_internal.h Solution: Move btree code to 'be' directory and make necessary changes for the same Signed-off-by: Prasanna Kulkarni <[email protected]>
1 parent 8250edd commit c651fe9

File tree

23 files changed

+20
-28
lines changed

23 files changed

+20
-28
lines changed

Kbuild.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ include $(src)/m0t1fs/Kbuild.sub
6565
include $(src)/addb2/Kbuild.sub
6666
include $(src)/balloc/Kbuild.sub
6767
include $(src)/be/Kbuild.sub
68-
include $(src)/btree/Kbuild.sub
6968
include $(src)/cas/Kbuild.sub
7069
include $(src)/motr/Kbuild.sub
7170
include $(src)/conf/Kbuild.sub

Makefile.am

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ include $(top_srcdir)/addb2/st/Makefile.sub
209209
include $(top_srcdir)/balloc/Makefile.sub
210210
include $(top_srcdir)/be/Makefile.sub
211211
include $(top_srcdir)/be/tool/Makefile.sub
212-
include $(top_srcdir)/btree/Makefile.sub
213212
include $(top_srcdir)/capa/Makefile.sub
214213
include $(top_srcdir)/cas/Makefile.sub
215214
include $(top_srcdir)/cm/Makefile.sub
@@ -1126,7 +1125,6 @@ EXTRA_DIST += \
11261125
balloc/Kbuild.sub \
11271126
be/Kbuild.sub \
11281127
be/ut/Kbuild.sub \
1129-
btree/Kbuild.sub \
11301128
cas/Kbuild.sub \
11311129
cob/Kbuild.sub \
11321130
motr/Kbuild.sub\

balloc/balloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "lib/types.h"
3030
#include "lib/list.h"
3131
#include "lib/mutex.h"
32-
#include "btree/btree.h"
32+
#include "be/btree.h"
3333
#include "format/format.h"
3434
#include "stob/ad.h"
3535
#include "stob/ad_xc.h"

be/Kbuild.sub

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ m0tr_objects += \
22
be/addb2_xc.o \
33
be/alloc_xc.o \
44
be/alloc_internal_xc.o \
5+
be/btree.o \
56
be/domain_xc.o \
67
be/extmap.o \
78
be/extmap_xc.o \

be/Makefile.sub

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ nobase_motr_include_HEADERS += \
44
be/alloc_internal.h \
55
be/active_record.h \
66
be/be.h \
7+
be/btree.h \
8+
be/btree_internal.h \
79
be/domain.h \
810
be/engine.h \
911
be/extmap_internal.h \
@@ -43,6 +45,7 @@ nobase_motr_include_HEADERS += \
4345
motr_libmotr_la_SOURCES += be/alloc.c \
4446
be/active_record.c \
4547
be/be.c \
48+
be/btree.c \
4649
be/domain.c \
4750
be/engine.c \
4851
be/extmap.c \

be/be.c

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

2828
#include "be/tx_group_fom.h" /* m0_be_tx_group_fom_mod_init */
2929
#include "be/tx_internal.h" /* m0_be_tx_mod_init */
30-
#include "btree/btree.h"
30+
#include "be/btree.h"
3131

3232
/**
3333
* @addtogroup be

be/be.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* - m0_be_tx_credit (be/tx_credit.h);
4949
* - m0_be_op (be/op.h);
5050
* - m0_be_allocator (be/alloc.h);
51-
* - m0_btree (btree/btree.h);
51+
* - m0_btree (be/btree.h);
5252
* - m0_be_list (be/list.h);
5353
* - m0_be_emap (be/extmap.h);
5454
* - m0_be_0type (be/seg0.h);

btree/btree.c renamed to be/btree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@
550550
#include "lib/bitmap.h" /** struct m0_bitmap */
551551
#include "lib/byteorder.h" /** m0_byteorder_cpu_to_be64() */
552552
#include "lib/atomic.h" /** m0_atomic64_set() */
553-
#include "btree/btree.h"
553+
#include "be/btree.h"
554554
#include "format/format.h" /** m0_format_header ff_fmt */
555555
#include "module/instance.h"
556556
#include "lib/memory.h"

btree/btree.h renamed to be/btree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ M0_INTERNAL void m0_btree_del_credit2(const struct m0_btree_type *type,
725725
m0_bcount_t vsize,
726726
struct m0_be_tx_credit *accum);
727727

728-
#include "btree/internal.h"
728+
#include "be/btree_internal.h"
729729

730730
M0_INTERNAL int m0_btree_mod_init(void);
731731
M0_INTERNAL void m0_btree_mod_fini(void);
File renamed without changes.

0 commit comments

Comments
 (0)