bcachefs: Add bch_io_opts fields for indicating whether the opts came from the inode
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 20 Oct 2024 03:26:11 +0000 (23:26 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:16 +0000 (01:36 -0500)
commit7a7c43a0c1ecf174218f88cc46f5af361314b3c2
tree2b02a4191fc3d714b3af0820cbb1933e7bc895c6
parent3000855cab65831f39ecdedd9447c396893287f6
bcachefs: Add bch_io_opts fields for indicating whether the opts came from the inode

This is going to be used in the bch_extent_rebalance improvements, which
propagate io_path options into the extent (important for rebalance,
which needs something present in the extent for transactionally tagging
them in the rebalance_work btree, and also for indirect extents).

By tracking in bch_extent_rebalance whether the option came from the
filesystem or the inode we can correctly handle options being changed on
indirect extents.

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