]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/cache/pwl: fix endianness issue 46815/head
authorYin Congmin <congmin.yin@intel.com>
Mon, 25 Apr 2022 17:10:18 +0000 (01:10 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 22 Jun 2022 12:55:31 +0000 (14:55 +0200)
commit9df3cf82346491d758f2a0b4df4bfc2328216bff
tree54b091c0914ee2cde6ec51328b589dd628f8cec9
parentc793248586e4c0f5599b4a5afe731f2aa20610ec
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)

Conflicts:
src/librbd/cache/pwl/Types.cc [ commit e96cdcb65851
  ("librbd/cache/pwl: merge multiple output "<<" calls") not
  in pacific ]
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