Skip to content
Commit 2faf2e19 authored by Richard Kennedy's avatar Richard Kennedy Committed by Theodore Ts'o
Browse files

ext4: return correct wbc.nr_to_write in ext4_da_writepages



When ext4_da_writepages increases the nr_to_write in writeback_control
then it must always re-base the return value.  Originally there was a
(misguided) attempt prevent wbc.nr_to_write from going negative.  In
fact, it's necessary to allow nr_to_write to be negative so that
wb_writeback() can correctly calculate how many pages were actually
written.  

Signed-off-by: default avatarRichard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 6d3b82f2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment