Thread (46 messages) 46 messages, 9 authors, 2023-10-02

Re: [PATCH 02/17] btrfs: always open the device read-only in btrfs_scan_one_device

From: Christian Brauner <brauner@kernel.org>
Date: 2023-08-11 12:00:47
Also in: linux-btrfs, linux-fsdevel, linux-s390

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@lst.de>
---
Looks good to me,
Reviewed-by: Christian Brauner <brauner@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help