From: Jens Axboe Date: Tue, 10 Jun 2014 18:53:56 +0000 (-0600) Subject: block: ensure that bio_add_page() always accepts a page for an empty bio X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58a4915ad2f8a87f4456aac260396df7e300e6f2;p=pandora-kernel.git block: ensure that bio_add_page() always accepts a page for an empty bio With commit 762380ad9322 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: Keith Busch Signed-off-by: Jens Axboe --- Reading git-diff-tree failed