Skip to content
  • Theodore Ts'o's avatar
    ext4: Restore wbc->range_start in ext4_da_writepages() · de89de6e
    Theodore Ts'o authored
    To solve a lock inversion problem, we implement part of the
    range_cyclic algorithm in ext4_da_writepages().  (See commit 2acf2c26
    
    
    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: default avatar"Theodore Ts'o" <tytso@mit.edu>
    de89de6e