diff options
author | Christoph Hellwig <hch@lst.de> | 2023-05-08 16:44:05 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-05-20 03:48:53 +0200 |
commit | bda2795a630b2f6c417675bfbf4d90ef7503dfc7 (patch) | |
tree | 43c2281158fd9d0a10179eeeee4fd9f33e91d415 /block/blk-flush.c | |
parent | block: BFQ: Add several invariant checks (diff) | |
download | linux-bda2795a630b2f6c417675bfbf4d90ef7503dfc7.tar.xz linux-bda2795a630b2f6c417675bfbf4d90ef7503dfc7.zip |
fs: remove the special !CONFIG_BLOCK def_blk_fops
def_blk_fops always returns -ENODEV, which dosn't match the return value
of a non-existing block device with CONFIG_BLOCK, which is -ENXIO.
Just remove the extra implementation and fall back to the default
no_open_fops that always returns -ENXIO.
Fixes: 9361401eb761 ("[PATCH] BLOCK: Make it possible to disable the block layer [try #6]")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230508144405.41792-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-flush.c')
0 files changed, 0 insertions, 0 deletions