]> git.baikalelectronics.ru Git - kernel.git/commit
dm: always allow one page in dm_merge_bvec
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 1 Oct 2008 13:39:17 +0000 (14:39 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 1 Oct 2008 13:39:17 +0000 (14:39 +0100)
commit1a8c45e509d7a74afdfc011c6b3228a3bff86d9d
tree96b8684cd33eaee6dda5f07d598c93de36b1476a
parent38636b79f77aec9be2bfe8779588b7ecf75d89f7
dm: always allow one page in dm_merge_bvec

Some callers assume they can always add at least one page to an empty bio,
so dm_merge_bvec should not return 0 in this case: we'll reject the I/O
later after the bio is submitted.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm.c