]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/cache/pwl: fix endianness issue 46025/head
authorYin Congmin <congmin.yin@intel.com>
Mon, 25 Apr 2022 17:10:18 +0000 (01:10 +0800)
committerYin Congmin <congmin.yin@intel.com>
Tue, 26 Apr 2022 08:01:39 +0000 (16:01 +0800)
commit64f741ecebf3ff9a31d99f9f3d121ffeff54173b
tree4e7660d6b60a154977a78855262ae606eed542ac
parente43ba4c388272cea734c328c5508de4c025d4f4c
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>
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