• Kent Overstreet's avatar
    bcachefs: track_event_change() · 066a2646
    Kent Overstreet authored
    This introduces a new helper for connecting time_stats to state changes,
    i.e. when taking journal reservations is blocked for some reason.
    
    We use this to track separately the different reasons the journal might
    be blocked - i.e. space in the journal full, or the journal pin fifo
    full.
    
    Also do some cleanup and improvements on the time stats code.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    066a2646
journal_io.c 51 KB