]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: get_update_rebalance_opts()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 20 Oct 2024 01:41:20 +0000 (21:41 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:16 +0000 (01:36 -0500)
commit6aa0bd0fd59a1ab9ecd5c51332c29fac0d8969c8
tree678fb1ae92568bf92bfe66c893feec349f390d46
parent4ae6bbb522f59aef34bb7fb3f7048ecaf72f0ab7
bcachefs: get_update_rebalance_opts()

bch2_move_get_io_opts() now synchronizes options loaded from the
filesystem and inode (if present, i.e. not walking the reflink btree
directly) with options from the bch_extent_rebalance_entry, updating the
extent if necessary.

Since bch_extent_rebalance tracks where its option came from we can
preserve "inode options override filesystem options", even for indirect
extents where we don't have access to the inode the options came from.

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