]> git.baikalelectronics.ru Git - kernel.git/commit
2/2 splice: dont readpage
authorNick Piggin <npiggin@suse.de>
Tue, 27 Mar 2007 06:55:39 +0000 (08:55 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 27 Mar 2007 06:55:39 +0000 (08:55 +0200)
commit37f8d4e10b2fac31ef792fed10b50f2652e577db
treeded334291dfd9b3e72727fd4d71c8036bfd911f9
parentbf229cbdaee2ddeaca391f2e0ecbe41349cc0343
2/2 splice: dont readpage

Splice does not need to readpage to bring the page uptodate before writing
to it, because prepare_write will take care of that for us.

Splice is also wrong to SetPageUptodate before the page is actually uptodate.
This results in the old uninitialised memory leak. This gets fixed as a
matter of course when removing the readpage logic.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/splice.c