repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
null
ceph-main/src/crimson/common/tmap_helpers.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "include/expected.hpp" #include "include/buffer.h" #include "include/encoding.h" namespace crimson::common { /** * do_tmap_up * * Performs tmap update instructions encoded in buffer referenced...
1,186
27.95122
80
h
null
ceph-main/src/crimson/common/tri_mutex.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/future.hh> #include <seastar/core/circular_buffer.hh> class read_lock { public: seastar::future<> lock(); void unlock(); }; class write_lock { public: seastar::future<> lock(...
3,601
21.942675
79
h
null
ceph-main/src/crimson/common/utility.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <type_traits> namespace _impl { template <class T> struct always_false : std::false_type {}; }; template <class T> void assert_moveable(T& t) { // It's fine } template <class T> ...
1,050
25.948718
78
h
null
ceph-main/src/crimson/crush/CrushLocation.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 <map> #include <string> #if FMT_VERSION >= 90000 #include <fmt/ostream.h> #endif #include <seastar/core/seastar.hh> namespace crimson::crush { class CrushLocation { public: exp...
884
22.289474
93
h
null
ceph-main/src/crimson/mgr/client.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/timer.hh> #include "crimson/common/gated.h" #include "crimson/net/Dispatcher.h" #include "crimson/net/Fwd.h" #include "mon/MgrMap.h" template<typename Message> using Ref = boost::int...
1,908
25.887324
84
h
null
ceph-main/src/crimson/mon/MonClient.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/future.hh> #include <seastar/core/gate.hh> #include <seastar/core/lowres_clock.hh> #include <seastar/core/shared_ptr.hh> #include <seastar/core/tim...
6,818
30.136986
84
h
null
ceph-main/src/crimson/net/Connection.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
3,853
25.763889
88
h
null
ceph-main/src/crimson/net/Dispatcher.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
2,071
36
100
h
null
ceph-main/src/crimson/net/FrameAssemblerV2.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include "msg/async/frames_v2.h" #include "msg/async/crypto_onwire.h" #include "msg/async/compression_onwire.h" #include "crimson/common/gated.h" #include "crimson/net/Socket.h" namespace crimson::net { ...
5,163
22.797235
81
h
null
ceph-main/src/crimson/net/Fwd.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
1,446
26.301887
83
h
null
ceph-main/src/crimson/net/Interceptor.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <variant> #include <seastar/core/sharded.hh> #include <seastar/core/sleep.hh> #include "Fwd.h" #include "msg/async/frames_v2.h" namespace crimson::net { enum class custom_bp_t : uint8_t { BANNE...
6,237
34.443182
95
h
null
ceph-main/src/crimson/net/Messenger.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
3,456
25.389313
87
h
null
ceph-main/src/crimson/net/ProtocolV2.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/shared_future.hh> #include <seastar/core/sleep.hh> #include "io_handler.h" namespace crimson::net { class ProtocolV2 final : public HandshakeListener { using AuthConnectionMetaRef...
8,992
27.015576
101
h
null
ceph-main/src/crimson/net/SocketConnection.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
5,624
23.141631
94
h
null
ceph-main/src/crimson/net/SocketMessenger.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
5,289
26.409326
93
h
null
ceph-main/src/crimson/net/chained_dispatchers.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/smp.hh> #include "Fwd.h" #include "crimson/common/log.h" namespace crimson::net { class Dispatcher; class ChainedDispatchers { public: void assign(const dispatchers_t& _dispat...
960
23.641026
94
h
null
ceph-main/src/crimson/net/io_handler.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/shared_future.hh> #include <seastar/util/later.hh> #include "crimson/common/gated.h" #include "Fwd.h" #include "SocketConnection.h" #include "FrameAssemblerV2.h" namespace crimson::n...
15,166
23.863934
104
h
null
ceph-main/src/crimson/os/futurized_collection.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 "osd/osd_types.h" namespace crimson::os { class FuturizedStore; class Fut...
915
23.105263
70
h
null
ceph-main/src/crimson/os/futurized_store.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 <map> #include <optional> #include <vector> #include <seastar/core/future.hh> #include "os/Transaction.h" #include "crimson/common/smp_helpers.h" #include "crimson/common/smp_hel...
5,948
29.352041
90
h
null
ceph-main/src/crimson/os/alienstore/alien_collection.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "os/ObjectStore.h" #include "crimson/os/futurized_collection.h" #include "crimson/os/futurized_store.h" #include "alien_store.h" namespace crimson::os { class AlienCollection final : public Futur...
1,233
29.85
72
h
null
ceph-main/src/crimson/os/alienstore/alien_store.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <seastar/core/future.hh> #include <seastar/core/shared_mutex.hh> #include "common/ceph_context.h" #include "os/ObjectStore.h" #include "osd/osd_types.h" #include "crimson/os/alienstore...
4,743
34.402985
80
h
null
ceph-main/src/crimson/os/alienstore/semaphore.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <semaphore.h> #include <ctime> #include <cerrno> #include <exception> #include <chrono> namespace crimson { // an implementation of std::counting_semaphore<> in C++17 using the POSIX //...
2,219
23.395604
93
h
null
ceph-main/src/crimson/os/alienstore/thread_pool.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <atomic> #include <condition_variable> #include <tuple> #include <type_traits> #include <boost/lockfree/queue.hpp> #include <boost/optional.hpp> #include <seastar/core/future.hh> #include...
5,335
27.843243
102
h
null
ceph-main/src/crimson/os/cyanstore/cyan_collection.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 <unordered_map> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include "include/buffer.h" #include "osd/osd_types.h" #include "crimson/o...
1,446
26.826923
75
h
null
ceph-main/src/crimson/os/cyanstore/cyan_object.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <cstddef> #include <map> #include <string> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include "include/buffer.h" namespace crimson::os { struct Object...
1,198
25.065217
70
h
null
ceph-main/src/crimson/os/cyanstore/cyan_store.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 <unordered_map> #include <map> #include <typeinfo> #include <vector> #include <optional> #include <seastar/core/future.hh> #include <seastar/core/future-util.hh> #include "osd/os...
6,408
28.131818
82
h
null
ceph-main/src/crimson/os/seastore/backref_manager.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/cache.h" #include "crimson/os/seastore/cached_extent.h" #include "crimson/os/seastore/transaction.h" namespace crimson::os::seastore { /** * Abstract interface for managing b...
4,580
28.365385
87
h
null
ceph-main/src/crimson/os/seastore/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 <seastar/core/future.hh> #include "osd/osd_types.h" #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seastore/transaction_manager.h" namespace crimson::os::seastore { struct ...
2,088
23.576471
70
h
null
ceph-main/src/crimson/os/seastore/device.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 "include/buffer_fwd.h" #include "crimson/common/errorator.h" #include "crimson/os/seastore/seastore_types.h" namespace crimson::os::seastore { using magic_t = uint64_t; stru...
4,399
24
102
h
null
ceph-main/src/crimson/os/seastore/journal.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 "crimson/os/seastore/ordering_handle.h" #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seastore/segment_seq_allocator.h" namespace crimson::os::seastore { ...
3,215
25.146341
71
h
null
ceph-main/src/crimson/os/seastore/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....
5,641
26.125
76
h
null
ceph-main/src/crimson/os/seastore/logging.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <fmt/format.h> #include "crimson/common/log.h" #define LOGT(level_, MSG, t, ...) \ LOCAL_LOGGER.log(level_, "{} trans.{} {}: " MSG, (void*)&t, \ (t).get_trans_id(), FNAME , ##__VA_ARGS__) #d...
1,259
39.645161
90
h
null
ceph-main/src/crimson/os/seastore/object_data_handler.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 <limits> #include "include/buffer.h" #include "test/crimson/seastore/test_block.h" // TODO #include "crimson/os/seastore/onode.h" #include "crimson/os/seastore/transaction_man...
3,997
27.15493
102
h
null
ceph-main/src/crimson/os/seastore/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 <iostream> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include "crimson/osd/exceptions.h" #include "crimson/os/seast...
6,586
30.218009
91
h
null
ceph-main/src/crimson/os/seastore/onode.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iosfwd> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include "include/byteorder.h" #include "seastore_types.h" namespace crimson::os::seastore { st...
2,578
27.977528
91
h
null
ceph-main/src/crimson/os/seastore/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 <iostream> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include "include/buffer_fwd.h" #include "include/ceph_assert...
2,691
29.942529
79
h
null
ceph-main/src/crimson/os/seastore/ordering_handle.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/shared_mutex.hh> #include "crimson/common/operation.h" #include "crimson/osd/osd_operation.h" namespace crimson::os::seastore { struct WritePipeline { struct ReserveProjectedUsage...
5,404
28.697802
90
h
null
ceph-main/src/crimson/os/seastore/random_block_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...
5,353
29.248588
107
h
null
ceph-main/src/crimson/os/seastore/randomblock_manager_group.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <set> #include "crimson/common/errorator.h" #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seastore/random_block_manager.h" #include "crimson/os/seastore/random_bl...
1,787
23.833333
72
h
null
ceph-main/src/crimson/os/seastore/root_block.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/cached_extent.h" namespace crimson::os::seastore { /** * RootBlock * * Holds the physical addresses of all metadata roots. * In-memory values may be * - absolute: referen...
3,419
30.090909
96
h
null
ceph-main/src/crimson/os/seastore/seastore.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 <unordered_map> #include <map> #include <typeinfo> #include <vector> #include <optional> #include <seastar/core/future.hh> #include <seastar/core/metrics_types.hh> #include "incl...
15,257
27.897727
95
h
null
ceph-main/src/crimson/os/seastore/segment_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 <boost/iterator/counting_iterator.hpp> #include <seastar/core/future.hh> #include "include...
6,414
28.562212
108
h
null
ceph-main/src/crimson/os/seastore/segment_manager_group.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <set> #include "crimson/common/errorator.h" #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seastore/segment_manager.h" namespace crimson::os::seastore { class Se...
5,917
32.247191
85
h
null
ceph-main/src/crimson/os/seastore/segment_seq_allocator.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/logging.h" #include "crimson/os/seastore/seastore_types.h" namespace crimson::os::seastore { class AsyncCleaner; } namespace crimson::os::seastore::journal { class SegmentedJo...
1,222
22.980392
70
h
null
ceph-main/src/crimson/os/seastore/transaction.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/list.hpp> #include "crimson/common/log.h" #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/ordering_handle.h" #include "crimson/os/seasto...
17,815
26.24159
96
h
null
ceph-main/src/crimson/os/seastore/transaction_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 <optional> #include <vector> #include <utility> #include <functional> #include <boost/intrusive_ptr.hpp> #include <boost/iterator/counting_iterator.hpp> #include <boost/smart_pt...
24,436
28.764921
89
h
null
ceph-main/src/crimson/os/seastore/backref/backref_tree_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/btree/fixed_kv_node.h" namespace crimson::os::seastore::backref { using backref_node_meta_t = fixed_kv_node_meta_t<paddr_t>; using backref_node_meta_le_t = fixed_kv_node_meta_...
3,877
27.101449
115
h
null
ceph-main/src/crimson/os/seastore/backref/btree_backref_manager.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/backref_manager.h" #include "crimson/os/seastore/backref/backref_tree_node.h" #include "crimson/os/seastore/btree/fixed_kv_btree.h" namespace crimson::os::seastore::backref { ...
2,677
21.888889
71
h
null
ceph-main/src/crimson/os/seastore/btree/btree_range_pin.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/set.hpp> #include "crimson/common/log.h" #include "crimson/os/seastore/cache.h" #include "crimson/os/seastore/cached_extent.h" #include "crimson/os/seastore/seastore_types.h" nam...
5,120
23.270142
94
h
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.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.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.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.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.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.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.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.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.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.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/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.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.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.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_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.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.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.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.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/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.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_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.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.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.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.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.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.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.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.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/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.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.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.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/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/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.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