btrfs: centralize setting REQ_META
authorChristoph Hellwig <hch@lst.de>
Thu, 26 May 2022 07:36:39 +0000 (09:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:33 +0000 (17:45 +0200)
commit08a6f464342cc09b14680dcefb3c5eeac8a06aeb
treede969b77410d45115dd6a5bd10806e80b9e33e8e
parentfed8a72df126fdf03bf6bd46d83be9ff3bd90892
btrfs: centralize setting REQ_META

Set REQ_META in btrfs_submit_metadata_bio instead of the various callers.
We'll start relying on this flag inside of btrfs in a bit, and this
ensures it is always set correctly.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c