]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd/cache/pwl: make pool size a multiple of 1M
authorIlya Dryomov <idryomov@gmail.com>
Sat, 14 Aug 2021 17:06:28 +0000 (19:06 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Aug 2021 21:07:59 +0000 (23:07 +0200)
commit1fc722bc218acfe8a52ad7be2c06347bddb42bbe
tree2668160f25b28f8d26ca7158fc1de5960d85c11a
parent2cd9881116a47794051615fcf0a95a5e879ae7e6
librbd/cache/pwl: make pool size a multiple of 1M

In ssd mode, we need it to be a multiple of bdev block size.
Instead of munging it after opening the bdev in ssd/WriteLog.cc, let's
impose a common restriction and round rbd_persistent_cache_size down to
a 1M boundary.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/cache/pwl/AbstractWriteLog.cc
src/librbd/cache/pwl/Types.h