]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/cache/pwl: fix endianness issue 46094/head
authorYin Congmin <congmin.yin@intel.com>
Mon, 25 Apr 2022 17:10:18 +0000 (01:10 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 29 Apr 2022 19:20:36 +0000 (21:20 +0200)
commit01c0248a19983f224a3d96093a0aaec2effe7535
tree271e70caeedff7bd04e5fcb4f2c46e9b9a0cfa5f
parent759e9aca3c22c0edddce07dc02a7a0cd8edee217
librbd/cache/pwl: fix endianness issue

fix endianness issue with WriteLogCacheEntry encoding. abandon the
use of bits in the union. make '&' operation with the whole union
filed(flags) to get the bit information.

Fixes: https://tracker.ceph.com/issues/55389
Signed-off-by: Yin Congmin <congmin.yin@intel.com>
(cherry picked from commit 64f741ecebf3ff9a31d99f9f3d121ffeff54173b)
src/librbd/cache/pwl/LogEntry.cc
src/librbd/cache/pwl/LogEntry.h
src/librbd/cache/pwl/Types.cc
src/librbd/cache/pwl/Types.h
src/librbd/cache/pwl/rwl/WriteLog.cc
src/librbd/cache/pwl/ssd/WriteLog.cc