Skip to content
  • Chris Mason's avatar
    Btrfs: fix oops on page->mapping->host during writepage · 11c8349b
    Chris Mason authored
    
    
    The extent_io writepage call updates the writepage index in the inode
    as it makes progress.  But, it was doing the update after unlocking the page,
    which isn't legal because page->mapping can't be trusted once the page
    is unlocked.
    
    This lead to an oops, especially common with compression turned on.  The
    fix here is to update the writeback index before unlocking the page.
    
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    11c8349b