]> git.neil.brown.name Git - history.git/commit
[PATCH] direct-io bio_add_page fix
authorAndrew Morton <akpm@digeo.com>
Sun, 13 Oct 2002 02:32:45 +0000 (19:32 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 13 Oct 2002 02:32:45 +0000 (19:32 -0700)
commit5aa6ba1ace79a638a5382ced5b479ff5961a925c
treec9f8681977e77d89ab8320cf806477f01a17ae4a
parent75a08275da11f7ab4573a83754b1459976f2d08b
[PATCH] direct-io bio_add_page fix

Patch from Badari Pulavarty

There was a corner case in the conversion of direct-io to use
bio_add_page() where we would start a new page out at the wrong sector
number.

Fix that by explicitly passing in the current page's starting sector,
and use that in the new BIO if we have to open a new one.

Fix an error-path page->count leak in dio_bio_add_page().
fs/direct-io.c