From: Xuehan Xu Date: Wed, 19 Nov 2025 10:21:52 +0000 (+0800) Subject: crimson/os/seastore/seastore_types: define rewriting transactions X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=40e1cabb72aa70df4f608d95449ebd133c3d76a8;p=ceph-ci.git crimson/os/seastore/seastore_types: define rewriting transactions These are the transactions that only rewrite extents and mutation lba nodes, e.g. TRIM_DIRTY and CLEANER transactions Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/os/seastore/seastore_types.h b/src/crimson/os/seastore/seastore_types.h index 706217ea42a..ce5b8cb8d88 100644 --- a/src/crimson/os/seastore/seastore_types.h +++ b/src/crimson/os/seastore/seastore_types.h @@ -2262,6 +2262,12 @@ constexpr bool is_background_transaction(transaction_type_t type) { type < transaction_type_t::MAX); } +constexpr bool is_rewrite_transaction(transaction_type_t type) { + return type == transaction_type_t::TRIM_DIRTY || + type == transaction_type_t::CLEANER_MAIN || + type == transaction_type_t::CLEANER_COLD; +} + constexpr bool is_trim_transaction(transaction_type_t type) { return (type == transaction_type_t::TRIM_DIRTY || type == transaction_type_t::TRIM_ALLOC);