diff options
author | Christian Brauner <brauner@kernel.org> | 2024-01-23 14:26:48 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-02-25 12:05:28 +0100 |
commit | 321de651fa565dcf76c017b257bdf15ec7fff45d (patch) | |
tree | 347fdf9dfdc22b8bf68701a9fdaedb2d74a9dc1b /block/blk.h | |
parent | bdev: remove bdev pointer from struct bdev_handle (diff) | |
download | linux-321de651fa565dcf76c017b257bdf15ec7fff45d.tar.xz linux-321de651fa565dcf76c017b257bdf15ec7fff45d.zip |
block: don't rely on BLK_OPEN_RESTRICT_WRITES when yielding write access
Make it possible to detected a block device that was opened with
restricted write access based only on BLK_OPEN_WRITE and
bdev->bd_writers < 0 so we won't have to claim another FMODE_* flag.
Link: https://lore.kernel.org/r/20240123-vfs-bdev-file-v2-31-adbd023e19cc@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'block/blk.h')
0 files changed, 0 insertions, 0 deletions