summaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-04-28 06:15:07 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2024-05-03 02:04:18 +0200
commit811ba89a8838e7c43ff46b6210ba1878bfe4437e (patch)
treed4c3b334027bef9dbf2adbfb159bc8ca1f477721 /block/blk-core.c
parentbdev: move ->bd_ro_warned to ->__bd_flags (diff)
downloadlinux-811ba89a8838e7c43ff46b6210ba1878bfe4437e.tar.xz
linux-811ba89a8838e7c43ff46b6210ba1878bfe4437e.zip
bdev: move ->bd_make_it_fail to ->__bd_flags
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 1be49be9fac4..1076336dd620 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -494,7 +494,8 @@ __setup("fail_make_request=", setup_fail_make_request);
bool should_fail_request(struct block_device *part, unsigned int bytes)
{
- return part->bd_make_it_fail && should_fail(&fail_make_request, bytes);
+ return bdev_test_flag(part, BD_MAKE_IT_FAIL) &&
+ should_fail(&fail_make_request, bytes);
}
static int __init fail_make_request_debugfs(void)