• Josef Bacik's avatar
    Btrfs: do not release metadata for space cache inodes · b6d08f06
    Josef Bacik authored
    I've been testing our error paths and I was tripping the BUG_ON() in
    drop_outstanding_extent because our outstanding_extents is 0 for space cache
    inodes.  This is because we don't reserve metadata space for these inodes since
    we depend on the global block reserve for our space.  To fix this we need to
    make sure the DO_ACCOUNTING stuff doesn't actually call release_metadata for
    space cache inodes.  With this patch I'm no longer panicing.  Thanks,
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
    b6d08f06
inode.c 230 KB