• David Sterba's avatar
    btrfs: preallocate compression workspaces · f77dd0d6
    David Sterba authored
    Preallocate one workspace for each compression type so we can guarantee
    forward progress in the worst case. A failure cannot be a hard error as
    we might not use compression at all on the filesystem. If we can't
    allocate the workspaces later when need them, it might actually
    deadlock, but in such situation the system has effectively not enough
    memory to operate properly.
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    f77dd0d6
compression.c 28 KB