diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-24 02:28:15 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:46 +0200 |
commit | abb936fb9f2ab4a447a266477d65e50d476277a5 (patch) | |
tree | faa4c9a4d7ba0f2da2215b76f74fc98d8e0cb5df /fs/bcachefs/opts.h | |
parent | bcachefs: Better inlining in bch2_subvolume_get_snapshot() (diff) | |
download | linux-abb936fb9f2ab4a447a266477d65e50d476277a5.tar.xz linux-abb936fb9f2ab4a447a266477d65e50d476277a5.zip |
bcachefs: Improve bch2_inode_opts_to_opts()
It turns out the *_defined entries of bch_io_opts are only used in one
place - in the xattr get path - and there we immediately convert to a
bch_opts struct, which also has the *_defined entries.
This patch changes bch2_inode_opts_to_opts() to go directly from
bch_inode_unpacked to bch_opts, which is a minor simplification and will
also let us slim down struct bch_io_opts in another patch.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r-- | fs/bcachefs/opts.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index 6e2bd6e01f8c..a32a7ab73bd5 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -513,7 +513,6 @@ struct bch_io_opts { }; struct bch_io_opts bch2_opts_to_inode_opts(struct bch_opts); -struct bch_opts bch2_inode_opts_to_opts(struct bch_io_opts); void bch2_io_opts_apply(struct bch_io_opts *, struct bch_io_opts); bool bch2_opt_is_inode_opt(enum bch_opt_id); |