bcachefs: Convert compression_stats to for_each_btree_key2
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 4 Dec 2023 05:38:56 +0000 (00:38 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 4 Dec 2023 21:04:55 +0000 (16:04 -0500)
commitadcf4ee64291b701d083bacf653eb10a4c46acd7
tree9ce4e2c4232291cadee88784257b063a4f190aa6
parent131898b0cb4ac6598d3537eeeee2711dec129f51
bcachefs: Convert compression_stats to for_each_btree_key2

for_each_btree_key2() runs each loop iteration in a btree transaction,
and thus does not cause SRCU lock hold time problems.

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