Commit a1774a05 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: bch_folio_sector_state improvements



 - X-macro-ize the bch_folio_sector_state enum: this means we can easily
   generate strings, which is helpful for debugging.

 - Add helpers for state transitions: folio_sector_dirty(),
   folio_sector_undirty(), folio_sector_reserve()

 - Add folio_sector_set(), a single helper for changing folio sector
   state just so that we have a single place to instrument when we're
   debugging.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 959f7368
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment