]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Option changes now get propagated to reflinked data
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 20 Oct 2024 06:12:21 +0000 (02:12 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 29 Dec 2024 18:30:39 +0000 (13:30 -0500)
commit80c6352c2c98bc7b399ce94ae7e54b5b36aad731
treeec3d5ca9dbeea4bc417eb6d31351b3bba2c1eb17
parentea4f9e75ecfb1203980716d6306de3f8789a049e
bcachefs: Option changes now get propagated to reflinked data

Now that bch2_move_get_io_opts() re-propagates changed inode io options
to bch_extent_rebalance, we can properly suport changing IO path options
for reflinked data.

Changing a per-file IO path option, either via the xattr interface or
via the BCHFS_IOC_REINHERIT_ATTRS ioctl, will now trigger a scan (the
inode number is marked as needing a scan, via
bch2_set_rebalance_needs_scan()), and rebalance will use
bch2_move_data(), which will walk the inode number and pick up the new
options.

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