On Fri, Aug 11, 2023 at 12:08:13PM +0200, Christoph Hellwig wrote: > btrfs_scan_one_device opens the block device only to read the super > block. Instead of passing a blk_mode_t argument to sometimes open > it for writing, just hard code BLK_OPEN_READ as it will never write > to the device or hand the block_device out to someone else. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > --- Looks good to me, Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>