]> git.hungrycats.org Git - linux/commit
[PATCH] Fix odd code in bio_add_page
authorAndrew Morton <akpm@osdl.org>
Wed, 3 Sep 2003 18:11:33 +0000 (11:11 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 3 Sep 2003 18:11:33 +0000 (11:11 -0700)
commitad1ee2b10d746846424375ecef3e13a95d200172
tree245a67e8c23f74e1b99ede92c97c6da4be003bc4
parent36f9e5f44f049a2789e4b6e4916415d833f1c08d
[PATCH] Fix odd code in bio_add_page

From: Neil Brown <neilb@cse.unsw.edu.au>

With the current code in bio_add_page, if fail_segments is ever set, it
stays set, so bio_add_page will eventually fail having recounted the
segmentation once.

I don't think this is intended.  This patch changes the code to allow
success if the recounting the segments helps.

(Jens has acked this)
fs/bio.c