]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Restore wbc->range_start in ext4_da_writepages()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 31 Aug 2009 21:00:59 +0000 (17:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 31 Aug 2009 21:00:59 +0000 (17:00 -0400)
commita8a2acadbfce578576ed32996941ae4ad663ccd7
treeb6429d327cb0a6985d3fd9bf11755353408ee44c
parent90c6f623018572bd0d02dad59a10974ab0223a75
ext4: Restore wbc->range_start in ext4_da_writepages()

To solve a lock inversion problem, we implement part of the
range_cyclic algorithm in ext4_da_writepages().  (See commit adda968e
for more details.)

As part of that change wbc->range_start was modified by ext4's
writepages function, which causes its callers to get confused since
they aren't expecting the filesystem to modify it.  The simplest fix
is to save and restore wbc->range_start in ext4_da_writepages.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c