Re: [PATCH v2] ceph: add compression_hint mount option

From: Daolong Zhang

Date: Mon Nov 30 2026 - 21:40:15 EST


Hi Alex,

Good catch, thanks for pointing that out.

I've updated the patch for v3 so that whenever a write carries an active
truncate sequence (i.e. truncate_seq != 0 and not the initial (1, -1ULL)
pair), SETALLOCHINT is placed after the WRITE op(s) instead of before
them. That way SETALLOCHINT cannot create an absent object (or clear a
whiteout) before WRITE evaluates its truncate sequence, preserving the
missing-object behavior. On classic OSDs, PGTransaction still lowers
set_alloc_hint before buffer writes, so the compression hint continues
to apply on the first write.

I've also rebased onto the latest ceph-client/testing and will send v3
shortly.

Thanks,
Daolong