Skip to content
  • Josef Bacik's avatar
    Btrfs: fix data space leak fix · fbf19087
    Josef Bacik authored
    
    
    There is a problem where page_mkwrite can be called on a dirtied page that
    already has a delalloc range associated with it.  The fix is to clear any
    delalloc bits for the range we are dirtying so the space accounting gets
    handled properly.  This is the same thing we do in the normal write case, so we
    are consistent across the board.  With this patch we no longer leak reserved
    space.
    
    Signed-off-by: default avatarJosef Bacik <jbacik@redhat.com>
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    fbf19087