[all] Eliminate duplicated sector_t typedefs

This commit is contained in:
Ming-Hung Tsai
2020-06-17 12:56:40 +08:00
parent a345b894d3
commit 621b466333
5 changed files with 4 additions and 8 deletions

View File

@ -1,6 +1,7 @@
#ifndef BLOCK_CACHE_IO_ENGINE_H
#define BLOCK_CACHE_IO_ENGINE_H
#include "base/types.h"
#include "base/unique_handle.h"
#include <boost/optional.hpp>
@ -18,9 +19,8 @@
//----------------------------------------------------------------
namespace bcache {
using sector_t = uint64_t;
unsigned const SECTOR_SHIFT = 9;
using base::sector_t;
using base::SECTOR_SHIFT;
// Virtual base class to aid unit testing
class io_engine {