bcachefs: Pull disk accounting hooks out of trans_commit.c
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 1 Oct 2024 20:59:08 +0000 (16:59 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:14 +0000 (01:36 -0500)
commitc07beca44ff181bad5928abccff6358ca9d9590b
tree3420cb18c79383f900f519705472caf21b647251
parent179cdecf225dfe2ad88ca1fbcf776d7e6fc10c26
bcachefs: Pull disk accounting hooks out of trans_commit.c

Also, fix a minor bug in the revert path, where we weren't checking the
journal entry type correctly.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_trans_commit.c
fs/bcachefs/disk_accounting.h