]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bio-modify-__bio_add_page-to-accept-pages-that-dont-start-a-new-segment-v3
authorMaurizio Lombardi <mlombard@redhat.com>
Thu, 22 May 2014 00:54:44 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 10 Jun 2014 06:02:17 +0000 (16:02 +1000)
commita5c5a33a0d863a0ddbcfa76533aa15705577e530
tree5016d3d59e85d19885f4ac6f468e2c0c4a5c8992
parent0573d0b4628de4d37bf4d35d65ec5b11f0ca75a2
bio-modify-__bio_add_page-to-accept-pages-that-dont-start-a-new-segment-v3

Changes in V3:

In case of error, V2 restored the previous number of segments but left
the BIO_SEG_FLAG set.
To avoid problems, after the page is removed from the bio vec,
V3 performs a recount of the segments in the error code path.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Kent Overstreet <kmo@daterainc.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
block/bio.c