]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerDeepika Upadhyay <dupadhya@redhat.com>
Fri, 5 Nov 2021 09:22:02 +0000 (14:52 +0530)
commit5b7a468eadb18ac8f91681ec91da2e50b6ad53a2
treec4ccddb1777b5a13425df240fdc7e1ec474f8df2
parent059e192bdbe3753d495850cb78b552d694dbf714
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>
(cherry picked from commit 1fc722bc218acfe8a52ad7be2c06347bddb42bbe)