diff options
author | Richard Kennedy <richard@rsk.demon.co.uk> | 2009-12-25 21:46:07 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-12-25 21:46:07 +0100 |
commit | 2faf2e19dd0e060eeb32442858ef495ac3083277 (patch) | |
tree | cd8c28414036f2d8ad45663371e1544d4efad5d4 /fs/ext4/extents.c | |
parent | ext4: Update documentation to correct the inode_readahead_blks option name (diff) | |
download | linux-2faf2e19dd0e060eeb32442858ef495ac3083277.tar.xz linux-2faf2e19dd0e060eeb32442858ef495ac3083277.zip |
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: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions