These are the transactions that only rewrite extents and mutation lba
nodes, e.g. TRIM_DIRTY and CLEANER transactions
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
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);