summaryrefslogtreecommitdiffstats
path: root/src/crimson/os/seastore/backref_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/crimson/os/seastore/backref_manager.cc')
-rw-r--r--src/crimson/os/seastore/backref_manager.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/crimson/os/seastore/backref_manager.cc b/src/crimson/os/seastore/backref_manager.cc
new file mode 100644
index 000000000..c596ee41d
--- /dev/null
+++ b/src/crimson/os/seastore/backref_manager.cc
@@ -0,0 +1,18 @@
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// vim: ts=8 sw=2 smarttab
+
+#include "crimson/os/seastore/cache.h"
+#include "crimson/os/seastore/backref_manager.h"
+#include "crimson/os/seastore/backref/btree_backref_manager.h"
+
+namespace crimson::os::seastore {
+
+BackrefManagerRef create_backref_manager(
+ Cache &cache)
+{
+ return BackrefManagerRef(
+ new backref::BtreeBackrefManager(cache));
+}
+
+} // namespace crimson::os::seastore::backref
+