• Kent Overstreet's avatar
    bcachefs: dev_usage updated by new accounting · f5095b9f
    Kent Overstreet authored
    Reading disk accounting now requires an eytzinger lookup (see:
    bch2_accounting_mem_read()), but the per-device counters are used
    frequently enough that we'd like to still be able to read them with just
    a percpu sum, as in the old code.
    
    This patch special cases the device counters; when we update in-memory
    accounting we also update the old style percpu counters if it's a deice
    counter update.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    f5095b9f
recovery.c 31.5 KB