]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: copygc now skips non-rw devices
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 28 Feb 2025 16:34:41 +0000 (11:34 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 6 Mar 2025 23:15:01 +0000 (18:15 -0500)
commit8ba73f53dc5b7545776e09e6982115dcbcbabec4
treea1c808948d586785a970ff334f9f27a2b67bdf27
parent33255c161ac4be003ac87c434ebc49645d18a929
bcachefs: copygc now skips non-rw devices

There's no point in doing copygc on non-rw devices: the fragmentation
doesn't matter if we're not writing to them, and we may not have
anywhere to put the data on our other devices.

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