• Josef Bacik's avatar
    Btrfs: log ram bytes properly · cc95bef6
    Josef Bacik authored
    When logging changed extents I was logging ram_bytes as the current length,
    which isn't correct, it's supposed to be the ram bytes of the original extent.
    This is for compression where even if we split the extent we need to know the
    ram bytes so when we uncompress the extent we know how big it will be.  This was
    still working out right with compression for some reason but I think we were
    getting lucky.  It was definitely off for prealloc which is why I noticed it,
    btrfsck was complaining about it.  With this patch btrfsck no longer complains
    after a log replay.  Thanks,
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    cc95bef6
extent_map.h 2.1 KB