bcachefs: bch2_inode_opts_get()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 24 Nov 2022 01:14:55 +0000 (20:14 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:49 +0000 (17:09 -0400)
commit01ad673727b59664c9d12df4e5b6f5bad1ea2825
treedb93047878a22efa13d8c91c3229639a5c4ebf79
parentf52dd1ae20ac8094eb881f816e7274d3f7910a84
bcachefs: bch2_inode_opts_get()

This improves io_opts() and makes it a non-inline function - it's big
enough that it probably shouldn't be.

Also, bch_io_opts no longer needs fields for whether options are
defined, so we can slim it down a bit.

We'd like to stop passing around the full bch_io_opts, but that'll be
tricky because of bch2_rebalance_add_key().

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