bcachefs: Improved bch2_fcollapse()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 22 Jul 2019 17:37:02 +0000 (13:37 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:26 +0000 (17:08 -0400)
commit63095894686cb4e16ad6a8329e95681cee63d615
tree46e17990156c8db36e7d5e02ff67f67d3609c098
parentc0fc30dad5820b9e7d27355ec8a507f61d27a299
bcachefs: Improved bch2_fcollapse()

Move extents instead of copying them - this way, we can iterate over
only live extents, not the entire keyspace. Also, this means we can
mostly skip running triggers.

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