]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
seastore: add blocks_per_segment to use paddr_t in RBM
authormyoungwon oh <myoungwon.oh@samsung.com>
Tue, 5 Oct 2021 01:37:59 +0000 (10:37 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Fri, 22 Oct 2021 05:36:48 +0000 (14:36 +0900)
commit187aeaec67d603a01409af27b306597f6933039f
treea60f8416b86003ba14c4431f89d470144981deb7
parent8ca0012e47ee3a2092320b30b8ea10a896bb6561
seastore: add blocks_per_segment to use paddr_t in RBM

Seastore exploits paddr_t to represent its address.
However. the term of "segment" in paddr_t generally be used in LFS,
not random block design---"block" is more general term of RBM.

The problem is that seasore already has been tighly coupled with padd_t,
also it does not make sense that there are two differnt address
such as paddr_t and block_paddr_t.

Therefore, to solve this problem, this commit adds blocks_per_segment, which
describes how many blocks a single segment contains to make RBM be compotible
with paddr_t

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/crimson/os/seastore/random_block_manager.h
src/crimson/os/seastore/random_block_manager/nvme_manager.cc
src/crimson/os/seastore/random_block_manager/nvme_manager.h
src/crimson/os/seastore/seastore_types.cc
src/crimson/os/seastore/seastore_types.h