Skip to content
Commit ac2b6f9d authored by Al Viro's avatar Al Viro
Browse files

bdev: move ->bd_has_subit_bio to ->__bd_flags



In bdev_alloc() we have all flags initialized to false, so
assignment to ->bh_has_submit_bio n there is a no-op unless
we have partno != 0 and flag already set on entire device.

In device_add_disk() we have just allocated the block_device
in question and it had been a full-device one, so the flag
is guaranteed to be still clear when we get to assignment.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 4c80105e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment