diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-23 10:33:59 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-08-23 11:01:16 +0300 |
commit | ee28b42006c37aaeb68c83300fe5608db662082f (patch) | |
tree | 49c4d2b61e35efb59e6e85a4b2431bfd4f511e4b /drivers/mtd/nand/spi/macronix.c | |
parent | 37b143d12b5f099bb4375162303ff1df1692cc5e (diff) | |
download | linux-ee28b42006c37aaeb68c83300fe5608db662082f.tar.xz |
mtd_blkdevs: simplify the refcounting in blktrans_{open, release}
Always grab a reference to the mtd_blktrans_dev in ->open instead of
just on the first open, and do away with the additional temporary
references in ->open and ->release.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210823073359.705281-9-hch@lst.de
Diffstat (limited to 'drivers/mtd/nand/spi/macronix.c')
0 files changed, 0 insertions, 0 deletions