linux/drivers/mtd/devices
Christoph Hellwig 2736e8eeb0 block: use the holder as indication for exclusive opens
The current interface for exclusive opens is rather confusing as it
requires both the FMODE_EXCL flag and a holder.  Remove the need to pass
FMODE_EXCL and just key off the exclusive open off a non-NULL holder.

For blkdev_put this requires adding the holder argument, which provides
better debug checking that only the holder actually releases the hold,
but at the same time allows removing the now superfluous mode argument.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Christian Brauner <brauner@kernel.org>
Acked-by: David Sterba <dsterba@suse.com>		[btrfs]
Acked-by: Jack Wang <jinpu.wang@ionos.com>		[rnbd]
Link: https://lore.kernel.org/r/20230608110258.189493-16-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-06-12 08:04:04 -06:00
..
bcm47xxsflash.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
bcm47xxsflash.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
block2mtd.c block: use the holder as indication for exclusive opens 2023-06-12 08:04:04 -06:00
docg3.c mtd: add ECC error accounting for each read request 2022-09-21 10:38:09 +02:00
docg3.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
Kconfig mtd: remove lart flash driver 2022-11-07 17:14:14 +01:00
Makefile mtd: remove lart flash driver 2022-11-07 17:14:14 +01:00
mchp23k256.c Core MTD changes: 2022-03-25 13:35:34 -07:00
mchp48l640.c Core MTD changes: 2022-03-25 13:35:34 -07:00
ms02-nv.c mtd: devices: Remove superfluous "break" 2021-05-26 10:58:26 +02:00
ms02-nv.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
mtd_dataflash.c mtd: devices: Replace all spi->chip_select and spi->cs_gpiod references with function call 2023-03-11 12:34:04 +00:00
mtdram.c mtd: mtdram: Expose module parameters 2019-01-08 12:42:57 +01:00
phram.c mtd: phram: Allow cached mappings 2022-05-16 18:37:48 +02:00
pmc551.c mtd: pmc551: Remove set but not used variable 'soff_lo' 2019-09-15 23:51:07 +02:00
powernv_flash.c mtd: powernv_flash: Warn about failure to unregister mtd device 2022-06-09 15:06:15 +02:00
serial_flash_cmds.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 420 2019-06-05 17:37:15 +02:00
slram.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
spear_smi.c mtd: Use of_property_read_bool() for boolean properties 2023-03-22 17:02:17 +01:00
sst25l.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
st_spi_fsm.c mtd: st_spi_fsm: Simplify error checking in .probe() a bit 2022-06-09 15:06:38 +02:00