]> 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)
commit3b8aa20d57b76964f0ef5b8e6a21b50f45c31fef
tree317dd585d47bc3e9194303f520376c0aa2375007
parent562726ebf7a3dbbc21518177d0debef5df6e8eba
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)