repo
stringlengths
1
152
file
stringlengths
15
205
code
stringlengths
0
41.6M
file_length
int64
0
41.6M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
90 values
null
ceph-main/src/crimson/os/seastore/collection_manager/collection_flat_node.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seastore/transaction_manager.h" #include "crimson/os/seastore/collection_manager.h" namespace crimson::os::seastore::collection_manager {...
4,706
24.171123
121
h
null
ceph-main/src/crimson/os/seastore/collection_manager/flat_collection_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <string.h> #include "crimson/common/log.h" #include "include/buffer.h" #include "include/stringify.h" #include "crimson/os/seastore/collection_manager/flat_collection_manager.h" #include "crimson/os/seastore/co...
4,328
31.066667
82
cc
null
ceph-main/src/crimson/os/seastore/collection_manager/flat_collection_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "include/ceph_assert.h" #include "crimson/os/seastore/collection_manager.h" #include "crimson/os/seastore/collection_manager/collection_flat_node.h" #include "crimson/os/seastore/seastore_types.h" ...
1,346
31.071429
102
h
null
ceph-main/src/crimson/os/seastore/journal/circular_bounded_journal.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <boost/iterator/counting_iterator.hpp> #include "crimson/common/errorator-loop.h" #include "include/intarith.h" #include "crimson/os/seastore/async_cleaner.h" #include "crimson/os/seastore/journal/circular_bound...
12,536
31.819372
94
cc
null
ceph-main/src/crimson/os/seastore/journal/circular_bounded_journal.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/common/log.h" #include <boost/intrusive_ptr.hpp> #include <seastar/core/future.hh> #include "include/ceph_assert.h" #include "include/buffer.h" #include "include/denc.h" #include "crims...
5,697
26.133333
84
h
null
ceph-main/src/crimson/os/seastore/journal/circular_journal_space.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #include "circular_journal_space.h" #include <fmt/format.h> #include <fmt/os.h> #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/async_cleaner.h" #include "crimson/os/seastore/journal/c...
6,751
27.978541
82
cc
null
ceph-main/src/crimson/os/seastore/journal/circular_journal_space.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <optional> #include <seastar/core/circular_buffer.hh> #include <seastar/core/metrics.hh> #include <seastar/core/shared_future.hh> #include "include/buffer.h" #include "crimson/common/e...
7,178
26.611538
130
h
null
ceph-main/src/crimson/os/seastore/journal/record_submitter.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #include "record_submitter.h" #include <fmt/format.h> #include <fmt/os.h> #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/async_cleaner.h" SET_SUBSYS(seastore_journal); namespace cri...
17,121
31.06367
87
cc
null
ceph-main/src/crimson/os/seastore/journal/record_submitter.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <optional> #include <seastar/core/circular_buffer.hh> #include <seastar/core/metrics.hh> #include <seastar/core/shared_future.hh> #include "include/buffer.h" #include "crimson/common/e...
9,903
27.45977
77
h
null
ceph-main/src/crimson/os/seastore/journal/segment_allocator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #include "segment_allocator.h" #include <fmt/format.h> #include <fmt/os.h> #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/async_cleaner.h" SET_SUBSYS(seastore_journal); namespace cr...
8,525
29.021127
79
cc
null
ceph-main/src/crimson/os/seastore/journal/segment_allocator.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <optional> #include <seastar/core/circular_buffer.hh> #include <seastar/core/metrics.hh> #include <seastar/core/shared_future.hh> #include "include/buffer.h" #include "crimson/common/e...
3,545
25.863636
72
h
null
ceph-main/src/crimson/os/seastore/journal/segmented_journal.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <iostream> #include <boost/iterator/counting_iterator.hpp> #include "include/intarith.h" #include "segmented_journal.h" #include "crimson/common/config_proxy.h" #include "crimson/os/seastore/logging.h" SET_S...
14,449
32.294931
82
cc
null
ceph-main/src/crimson/os/seastore/journal/segmented_journal.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/future.hh> #include "include/ceph_assert.h" #include "include/buffer.h" #include "include/denc.h" #include "crimson/os/seastore/async_cleaner.h" #include "crimson/os/seastore/journal...
3,038
27.669811
72
h
null
ceph-main/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <sys/mman.h> #include <string.h> #include <seastar/core/metrics.hh> #include "include/buffer.h" #include "crimson/os/seastore/lba_manager/btree/btree_lba_manager.h" #include "crimson/os/seastore/lba_manager/btr...
16,411
27.199313
92
cc
null
ceph-main/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include "include/ceph_assert.h" #include "include/buffer_fwd.h...
4,585
22.639175
80
h
null
ceph-main/src/crimson/os/seastore/lba_manager/btree/lba_btree_node.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <sys/mman.h> #include <string.h> #include <memory> #include <string.h> #include "include/buffer.h" #include "include/byteorder.h" #include "crimson/os/seastore/lba_manager/btree/lba_btree_node.h" #include "cri...
1,429
25
82
cc
null
ceph-main/src/crimson/os/seastore/lba_manager/btree/lba_btree_node.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <sys/mman.h> #include <memory> #include <string.h> #include "include/buffer.h" #include "crimson/common/fixed_kv_node_layout.h" #include "crimson/common/errorator.h" #include "crimson/os/seastore...
8,388
28.027682
122
h
null
ceph-main/src/crimson/os/seastore/omap_manager/btree/btree_omap_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <string.h> #include "crimson/common/log.h" #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seastore/omap_manager/btree/btree_omap_manager.h" #include "crimson/os/seastore/omap_manager/btree...
9,074
29.867347
90
cc
null
ceph-main/src/crimson/os/seastore/omap_manager/btree/btree_omap_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include "include/ceph_assert.h" #include "crimson/osd/exceptions.h" #include "crims...
3,082
26.526786
77
h
null
ceph-main/src/crimson/os/seastore/omap_manager/btree/omap_btree_node.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> #include <vector> //#include <boost/iterator/counting_iterator.hpp> #include "crimson/common/log.h" #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seastore/transactio...
3,874
30.504065
109
h
null
ceph-main/src/crimson/os/seastore/omap_manager/btree/omap_btree_node_impl.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <algorithm> #include <string.h> #include "include/buffer.h" #include "include/byteorder.h" #include "crimson/os/seastore/transaction_manager.h" #include "crimson/os/seastore/omap_manager/btree/omap_btree_node.h" ...
25,246
33.396458
92
cc
null
ceph-main/src/crimson/os/seastore/omap_manager/btree/omap_btree_node_impl.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string.h> #include "include/buffer.h" #include "crimson/common/errorator.h" #include "crimson/os/seastore/omap_manager.h" #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seas...
7,350
28.286853
114
h
null
ceph-main/src/crimson/os/seastore/omap_manager/btree/omap_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/seastore_types.h" namespace crimson::os::seastore::omap_manager { struct omap_node_meta_t { depth_t depth = 0; std::pair<omap_node_meta_t, omap_node_meta_t> split_into() c...
4,373
26.683544
82
h
null
ceph-main/src/crimson/os/seastore/omap_manager/btree/string_kv_node_layout.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include <string> #include "include/byteorder.h" #include "include/denc.h" #include "include/encoding.h" #include "crimson/common/layout.h" #include "crimson/common/fixed_kv_node_layout...
42,173
26.191489
102
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/fltree_onode_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/onode_manager/staged-fltree/fltree_onode_manager.h" SET_SUBSYS(seastore_onode); namespace crimson::os::seastore::onode { FLTreeOnodeManager::con...
5,413
29.587571
81
cc
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/fltree_onode_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/onode_manager.h" #include "crimson/os/seastore/onode_manager/staged-fltree/value.h" #include "crimson/os/seastore/onode_manager/staged-fltree/tree.h" namespace crimson::os::s...
4,723
26.952663
73
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/fwd.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <algorithm> #include <cstring> #include <limits> #include <memory> #include <ostream> #include <string> #include "crimson/common/errorator.h" #include "crimson/os/seastore/cached_extent.h" #inclu...
6,567
32.340102
94
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "node.h" #include <cassert> #include <exception> #include <sstream> #include "common/likely.h" #include "crimson/common/utility.h" #include "crimson/os/seastore/logging.h" #include "node_extent_manager.h" #i...
78,153
33.233027
111
cc
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <compare> #include <map> #include <memory> #include <ostream> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include "crimson/common/type_helpers.h" #include "node_extent_mutable.h" #incl...
24,933
32.513441
96
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_delta_recorder.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include "include/buffer.h" #include "node_types.h" #include "value.h" namespace crimson::os::seastore::onode { /** * DeltaRecorder * * An abstracted class to encapsulate different implementations to ...
1,368
23.446429
78
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_accessor.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/logging.h" #include "node_extent_manager.h" #include "node_delta_recorder.h" #include "node_layout_replayable.h" #include "value.h" #ifndef NDEBUG #include "node_extent_mana...
21,818
34.191935
92
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "node_extent_manager.h" #include "node_extent_manager/dummy.h" #include "node_extent_manager/seastore.h" namespace crimson::os::seastore::onode { NodeExtentManagerURef NodeExtentManager::create_dummy(bool is...
885
25.848485
72
cc
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/common/type_helpers.h" #include "crimson/os/seastore/cached_extent.h" #include "crimson/os/seastore/transaction_manager.h" #include "fwd.h" #include "node_extent_mutable.h" #include "nod...
3,120
28.443396
104
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_mutable.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include <cstring> #include "fwd.h" #pragma once namespace crimson::os::seastore::onode { /** * NodeExtentMutable * * A thin wrapper of NodeExtent to make sure that only the newly allocated * or the duplicated N...
3,146
26.605263
84
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_impl.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "node_impl.h" #include "node_layout.h" namespace crimson::os::seastore::onode { #ifdef UNIT_TESTS_BUILT last_split_info_t last_split = {}; #endif // XXX: branchless allocation eagain_ifuture<InternalNodeImpl...
2,416
28.839506
84
cc
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_impl.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <ostream> #include "node_extent_mutable.h" #include "node_types.h" #include "stages/stage_types.h" namespace crimson::os::seastore::onode { #ifdef UNIT_TESTS_BUILT enum class InsertType { BEGIN...
9,486
34.00738
101
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_layout.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <ostream> #include <sstream> #include "common/likely.h" #include "crimson/os/seastore/logging.h" #include "node_extent_accessor.h" #include "node_impl.h" #include "stages/node_stage_layout.h" n...
35,617
36.532139
94
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_layout_replayable.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include "node_extent_mutable.h" #include "stages/node_stage.h" #include "stages/stage.h" namespace crimson::os::seastore::onode { /** * NodeLayoutReplayableT * * Contains templated logics to modify t...
4,486
31.280576
79
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <cassert> #include <ostream> #include "fwd.h" namespace crimson::os::seastore::onode { constexpr uint8_t FIELD_TYPE_MAGIC = 0x25; enum class field_type_t : uint8_t { N0 = FIELD_TYPE_MAGIC, ...
4,460
29.554795
104
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/super.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "super.h" #include "node.h" namespace crimson::os::seastore::onode { Ref<Node> RootNodeTrackerIsolated::get_root(Transaction& t) const { auto iter = tracked_supers.find(&t); if (iter == tracked_supers.end...
567
18.586207
72
cc
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/super.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <memory> #include "crimson/common/type_helpers.h" #include "fwd.h" namespace crimson::os::seastore::onode { class Node; class Super; /** * RootNodeTracker * * An abstracted tracker to get ...
3,839
25.666667
79
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/tree.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <ostream> #include "common/hobject.h" #include "crimson/common/type_helpers.h" #include "crimson/os/seastore/logging.h" #include "fwd.h" #include "node.h" #include "node_extent_manager.h" #inclu...
11,585
28.860825
83
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/tree_utils.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <cassert> #include <cstring> #include <random> #include <string> #include <sstream> #include <utility> #include <vector> #include <seastar/core/thread.hh> #include "crimson/common/log.h" #includ...
17,436
29.80742
89
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/value.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "value.h" #include "node.h" #include "node_delta_recorder.h" #include "node_layout.h" // value implementations #include "test/crimson/seastore/onode_tree/test_value.h" #include "crimson/os/seastore/onode_mana...
5,066
29.709091
82
cc
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/value.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <ostream> #include "include/buffer.h" #include "crimson/common/type_helpers.h" #include "fwd.h" #include "node_extent_mutable.h" namespace crimson::os::seastore::onode { // value size up to 64...
9,925
28.366864
108
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/dummy.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <chrono> #include <seastar/core/sleep.hh> #include "include/buffer_raw.h" #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager.h" ...
6,425
31.619289
109
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/seastore.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "seastore.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_extent_accessor.h" #include "crimson/os/seastore/onode_manager/staged-fltree/stages/node_stage_layout.h" namespace { LOG_PREFIX(OTree:...
3,145
33.571429
93
cc
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/seastore.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <random> #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_de...
6,732
29.058036
112
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/test_replay.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/onode_manager/staged-fltree/node_delta_recorder.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager.h" /** test_replay.h * * A special version of...
2,300
32.838235
82
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/stages/item_iterator_stage.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "item_iterator_stage.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_extent_mutable.h" namespace crimson::os::seastore::onode { #define ITER_T item_iterator_t<NODE_TYPE> #define ITER_INST(N...
5,914
28.137931
80
cc
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/stages/item_iterator_stage.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/onode_manager/staged-fltree/node_types.h" #include "key_layout.h" #include "stage_types.h" namespace crimson::os::seastore::onode { class NodeExtentMutable; /** * item_ite...
6,505
32.536082
89
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/stages/key_layout.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "key_layout.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_extent_mutable.h" namespace crimson::os::seastore::onode { void string_key_view_t::append_str( NodeExtentMutable& mut, std::s...
949
26.142857
80
cc
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/stages/key_layout.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <cassert> #include <limits> #include <optional> #include <ostream> #include "common/hobject.h" #include "crimson/os/seastore/onode.h" #include "crimson/os/seastore/onode_manager/staged-fltree/fwd...
26,592
28.190999
104
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/stages/node_stage.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "node_stage.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_extent_mutable.h" #include "node_stage_layout.h" namespace crimson::os::seastore::onode { #define NODE_T node_extent_t<FieldType,...
15,824
36.589074
86
cc
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/stages/node_stage.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/onode_manager/staged-fltree/node_types.h" #include "key_layout.h" #include "stage_types.h" namespace crimson::os::seastore::onode { class NodeExtentMutable; /** * node_ext...
8,009
33.377682
83
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/stages/node_stage_layout.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "node_stage_layout.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_extent_mutable.h" namespace crimson::os::seastore::onode { void node_header_t::bootstrap_extent( NodeExtentMutable& mu...
5,268
33.214286
86
cc
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/stages/node_stage_layout.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include "key_layout.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_types.h" namespace crimson::os::seastore::onode { class NodeExtentMutable; struct node_header_t { static constexp...
14,889
35.584767
94
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/stages/stage.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <cassert> #include <compare> #include <optional> #include <ostream> #include <sstream> #include <type_traits> #include "common/likely.h" #include "sub_items_stage.h" #include "item_iterator_stag...
80,588
31.378063
90
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/stages/stage_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <cassert> #include <optional> #include <ostream> #include "crimson/os/seastore/onode_manager/staged-fltree/fwd.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_types.h" #include ...
11,976
26.036117
106
h
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/stages/sub_items_stage.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "sub_items_stage.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_extent_mutable.h" namespace crimson::os::seastore::onode { template <IsFullKey Key> const laddr_packed_t* internal_sub_items...
11,770
34.669697
94
cc
null
ceph-main/src/crimson/os/seastore/onode_manager/staged-fltree/stages/sub_items_stage.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <variant> #include "crimson/os/seastore/onode_manager/staged-fltree/node_types.h" #include "key_layout.h" #include "stage_types.h" namespace crimson::os::seastore::onode { class NodeExtentMutab...
12,455
32.756098
93
h
null
ceph-main/src/crimson/os/seastore/random_block_manager/avlallocator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab // #include "avlallocator.h" #include "crimson/os/seastore/logging.h" SET_SUBSYS(seastore_device); namespace crimson::os::seastore { void AvlAllocator::mark_extent_used(rbm_abs_addr addr, size_t size) { LOG_PREFIX(Av...
5,787
27.653465
84
cc
null
ceph-main/src/crimson/os/seastore/random_block_manager/avlallocator.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include "extent_allocator.h" #include "include/ceph_assert.h" #include "include/buffer_fwd.h" #include "crimson/osd/exceptions.h" #include "crimson/os/seastore/transaction.h" #include <string.h...
4,399
24.142857
77
h
null
ceph-main/src/crimson/os/seastore/random_block_manager/block_rb_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <sys/mman.h> #include <string.h> #include "crimson/os/seastore/logging.h" #include "include/buffer.h" #include "rbm_device.h" #include "include/interval_set.h" #include "include/intarith.h" #include "block_rb_m...
4,965
27.056497
80
cc
null
ceph-main/src/crimson/os/seastore/random_block_manager/block_rb_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iosfwd> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include "include/ceph_assert.h" #include "crimson/os/seastore/se...
4,130
27.888112
83
h
null
ceph-main/src/crimson/os/seastore/random_block_manager/extent_allocator.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seas...
2,021
25.605263
82
h
null
ceph-main/src/crimson/os/seastore/random_block_manager/nvme_block_device.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <sys/mman.h> #include <string.h> #include <fcntl.h> #include "crimson/common/log.h" #include "crimson/common/errorator-loop.h" #include "include/buffer.h" #include "rbm_device.h" #include "nvme_block_device.h"...
9,555
33.007117
92
cc
null
ceph-main/src/crimson/os/seastore/random_block_manager/nvme_block_device.h
//-*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <memory> #include <vector> #include <seastar/core/file.hh> #include <linux/nvme_ioctl.h> #include "crimson/osd/exceptions.h" #include "crimson/common/layout.h" #include "rbm_device.h" namespace ce...
10,069
26.894737
80
h
null
ceph-main/src/crimson/os/seastore/random_block_manager/rbm_device.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <sys/mman.h> #include <string.h> #include <fcntl.h> #include "crimson/common/log.h" #include "crimson/common/errorator-loop.h" #include "include/buffer.h" #include "rbm_device.h" #include "nvme_block_device.h"...
7,657
27.154412
88
cc
null
ceph-main/src/crimson/os/seastore/random_block_manager/rbm_device.h
//-*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seastore/random_block_manager.h" #include "crimson/os/seastore/device.h" namespace ceph { namespace buffer { class bufferptr; } } ...
7,167
26.358779
105
h
null
ceph-main/src/crimson/os/seastore/segment_manager/block.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <sys/mman.h> #include <string.h> #include <fmt/format.h> #include <seastar/core/metrics.hh> #include "include/buffer.h" #include "crimson/common/config_proxy.h" #include "crimson/common/errorator-loop.h" #in...
24,720
29.482121
86
cc
null
ceph-main/src/crimson/os/seastore/segment_manager/block.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/file.hh> #include <seastar/core/future.hh> #include <seastar/core/reactor.hh> #include "crimso...
6,606
24.121673
81
h
null
ceph-main/src/crimson/os/seastore/segment_manager/ephemeral.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <sys/mman.h> #include <string.h> #include "seastar/core/sleep.hh" #include "crimson/common/log.h" #include "include/buffer.h" #include "crimson/os/seastore/segment_manager/ephemeral.h" namespace { seastar::...
8,041
26.261017
88
cc
null
ceph-main/src/crimson/os/seastore/segment_manager/ephemeral.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include "crimson/os/seastore/segment_manager.h" #include "crimson/os/seastore/segm...
4,354
25.077844
122
h
null
ceph-main/src/crimson/os/seastore/segment_manager/zbd.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <sys/mman.h> #include <string.h> #include <linux/blkzoned.h> #include <fmt/format.h> #include "crimson/os/seastore/segment_manager/zbd.h" #include "crimson/common/config_proxy.h" #include "crimson/os/seastore/lo...
22,318
26.086165
109
cc
null
ceph-main/src/crimson/os/seastore/segment_manager/zbd.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <linux/blkzoned.h> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/file.hh> #include <seastar/core/future.hh> #include <seastar/core/r...
6,464
25.174089
80
h
null
ceph-main/src/crimson/osd/acked_peers.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <vector> namespace crimson::osd { struct peer_shard_t { pg_shard_t shard; eversion_t last_complete_ondisk; }; using acked_peers_t = std::vector<peer_shard_t>; }
298
18.933333
70
h
null
ceph-main/src/crimson/osd/backfill_facades.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/osd/backfill_state.h" #include "crimson/osd/pg.h" #include "osd/PeeringState.h" namespace crimson::osd { // PeeringFacade -- main implementation of the BackfillState::PeeringFacade // int...
2,311
30.243243
79
h
null
ceph-main/src/crimson/osd/backfill_state.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <algorithm> #include <boost/type_index.hpp> #include <fmt/ranges.h> #include "common/hobject_fmt.h" #include "crimson/osd/backfill_state.h" #include "osd/osd_types_fmt.h" namespace { seastar::logger& logger() ...
20,224
35.18068
79
cc
null
ceph-main/src/crimson/osd/backfill_state.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <optional> #include <boost/statechart/custom_reaction.hpp> #include <boost/statechart/event.hpp> #include <boost/statechart/event_base.hpp> #include <boost/statechart/simple_state.hpp> #include <bo...
12,813
32.456919
78
h
null
ceph-main/src/crimson/osd/ec_backend.cc
#include "ec_backend.h" #include "crimson/osd/shard_services.h" ECBackend::ECBackend(shard_id_t shard, ECBackend::CollectionRef coll, crimson::osd::ShardServices& shard_services, const ec_profile_t&, uint64_t, DoutPrefixProvide...
1,153
29.368421
68
cc
null
ceph-main/src/crimson/osd/ec_backend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <boost/intrusive_ptr.hpp> #include <seastar/core/future.hh> #include "include/buffer_fwd.h" #include "osd/osd_types.h" #include "pg_backend.h" class ECBackend : public PGBackend { public: ECBacke...
1,260
29.02381
84
h
null
ceph-main/src/crimson/osd/exceptions.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <exception> #include <system_error> #include "crimson/common/errorator.h" namespace crimson::osd { class error : private std::system_error { public: error(const std::errc ec) : system_error(...
1,000
20.297872
70
h
null
ceph-main/src/crimson/osd/heartbeat.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "heartbeat.h" #include <boost/range/join.hpp> #include <fmt/chrono.h> #include <fmt/os.h> #include "messages/MOSDPing.h" #include "messages/MOSDFailure.h" #include "crimson/common/config_proxy.h" #include "cri...
23,284
27.396341
90
cc
null
ceph-main/src/crimson/osd/heartbeat.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <cstdint> #include <seastar/core/future.hh> #include "common/ceph_time.h" #include "crimson/common/gated.h" #include "crimson/net/Dispatcher.h" #include "crimson/net/Fwd.h" class MOSDPing; namespa...
14,078
29.474026
103
h
null
ceph-main/src/crimson/osd/lsan_suppressions.cc
#ifndef _NDEBUG // The callbacks we define here will be called from the sanitizer runtime, but // aren't referenced from the Chrome executable. We must ensure that those // callbacks are not sanitizer-instrumented, and that they aren't stripped by // the linker. #define SANITIZER_HOOK_ATTRIBUTE ...
826
40.35
78
cc
null
ceph-main/src/crimson/osd/main.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include <sys/types.h> #include <unistd.h> #include <iostream> #include <fstream> #include <random> #include <seastar/core/app-template.hh> #include <seastar/core/print.hh> #include <seastar/core/prometheus.hh> #inclu...
10,066
37.719231
103
cc
null
ceph-main/src/crimson/osd/main_config_bootstrap_helpers.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "crimson/osd/main_config_bootstrap_helpers.h" #include <seastar/core/print.hh> #include <seastar/core/prometheus.hh> #include <seastar/core/thread.hh> #include <seastar/http/httpd.hh> #include <seastar/net/ine...
8,135
29.586466
77
cc
null
ceph-main/src/crimson/osd/main_config_bootstrap_helpers.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <sys/types.h> #include <unistd.h> #include <iostream> #include <fstream> #include <random> #include <seastar/core/future.hh> #include "common/ceph_argparse.h" #include "include/expected.hpp" #i...
2,214
22.56383
74
h
null
ceph-main/src/crimson/osd/objclass.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <cstdarg> #include <cstring> #include <boost/container/small_vector.hpp> #include "common/ceph_context.h" #include "common/ceph_releases.h" #include "common/config.h" #include "crimson/common/config_proxy.h" #inc...
15,070
24.762393
109
cc
null
ceph-main/src/crimson/osd/object_context.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/osd/object_context.h" #include <fmt/ranges.h> #include "common/Formatter.h" #include "crimson/common/config_proxy.h" namespace { seastar::logger& logger() { return crimson::get_logger(ceph_subsy...
2,260
25.290698
80
cc
null
ceph-main/src/crimson/osd/object_context.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <map> #include <optional> #include <utility> #include <seastar/core/shared_future.hh> #include <seastar/core/shared_ptr.hh> #include "common/intrusive_lru.h" #include "osd/object_state.h" #include ...
7,762
27.025271
115
h
null
ceph-main/src/crimson/osd/object_context_loader.cc
#include "crimson/osd/object_context_loader.h" #include "osd/osd_types_fmt.h" SET_SUBSYS(osd); namespace crimson::osd { using crimson::common::local_conf; template<RWState::State State> ObjectContextLoader::load_obc_iertr::future<> ObjectContextLoader::with_head_obc(ObjectContextRef obc, ...
8,548
35.534188
78
cc
null
ceph-main/src/crimson/osd/object_context_loader.h
#pragma once #include <seastar/core/future.hh> #include "crimson/common/errorator.h" #include "crimson/osd/object_context.h" #include "crimson/osd/pg_backend.h" namespace crimson::osd { class ObjectContextLoader { public: using obc_accessing_list_t = boost::intrusive::list< ObjectContext, ObjectContext::obc...
2,772
30.511364
81
h
null
ceph-main/src/crimson/osd/ops_executer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "ops_executer.h" #include <boost/range/adaptor/filtered.hpp> #include <boost/range/adaptor/map.hpp> #include <boost/range/adaptor/transformed.hpp> #include <boost/range/algorithm_ext/push_back.hpp> #include <boo...
50,976
33.867989
93
cc
null
ceph-main/src/crimson/osd/ops_executer.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <memory> #include <type_traits> #include <utility> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <fmt/os.h> #include <seastar/core/chunked_fifo.hh>...
20,498
31.538095
81
h
null
ceph-main/src/crimson/osd/osd.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "osd.h" #include <sys/utsname.h> #include <boost/iterator/counting_iterator.hpp> #include <boost/range/join.hpp> #include <fmt/format.h> #include <fmt/os.h> #include <fmt/ostream.h> #include <seastar/core/timer...
48,062
32.990806
94
cc
null
ceph-main/src/crimson/osd/osd.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/abort_source.hh> #include <seastar/core/future.hh> #include <seastar/core/shared_future.hh> #include <seastar/core/gate.hh> #include <seastar/core/shared_ptr.hh> #include <seastar/core...
9,074
29.45302
98
h
null
ceph-main/src/crimson/osd/osd_connection_priv.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/net/Connection.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/osd_operations/client_request.h" #include "crimson/osd/osd_operations/peering_event.h" #include "crimson/osd/o...
874
30.25
76
h
null
ceph-main/src/crimson/osd/osd_meta.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "osd_meta.h" #include <fmt/format.h> #include <fmt/ostream.h> #include "crimson/os/futurized_collection.h" #include "crimson/os/futurized_store.h" #include "os/Transaction.h" using std::string; using read_erro...
2,814
27.434343
76
cc