Replace remaining uses of __le16/__le32/__le64 in contexts that are
not relevant to code generation.
Also, remove unnecessary calls to le16/32/64_to_cpu.
This change is a no-op on all architectures.
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
INTERCEPT_CUSTOM(custom_bp_t::BANNER_WRITE, bp_type_t::WRITE);
return write_flush(std::move(bl)).then([this] {
// 2. read peer banner
- unsigned banner_len = strlen(CEPH_BANNER_V2_PREFIX) + sizeof(__le16);
+ unsigned banner_len = strlen(CEPH_BANNER_V2_PREFIX) + sizeof(ceph_le16);
INTERCEPT_CUSTOM(custom_bp_t::BANNER_READ, bp_type_t::READ);
return read_exactly(banner_len); // or read exactly?
}).then([this] (auto bl) {
const OSDOp& osd_op,
ceph::os::Transaction& txn)
{
- const int flags = le32_to_cpu(osd_op.op.flags);
- if (os.exists && !os.oi.is_whiteout() && (flags & CEPH_OSD_OP_FLAG_EXCL)) {
+ if (os.exists && !os.oi.is_whiteout() &&
+ (osd_op.op.flags & CEPH_OSD_OP_FLAG_EXCL)) {
// this is an exclusive create
throw ceph::osd::make_error(-EEXIST);
}