Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 58a4915a authored by Jens Axboe's avatar Jens Axboe
Browse files

block: ensure that bio_add_page() always accepts a page for an empty bio

With commit 762380ad

 added support for chunk sizes and no merging
across them, it broke the rule of always allowing adding of a single
page to an empty bio. So relax the restriction a bit to allow for that,
similarly to what we have always done.

This fixes a crash with mkfs.xfs and 512b sector sizes on NVMe.

Reported-by: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 2b8393b4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment