• Kent Overstreet's avatar
    bcachefs: Improve bch2_inode_opts_to_opts() · abb936fb
    Kent Overstreet authored
    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: default avatarKent Overstreet <kent.overstreet@linux.dev>
    abb936fb
opts.c 10.4 KB