• David Sterba's avatar
    btrfs: enhance compression error messages · be9438f0
    David Sterba authored
    Add more verbose and specific messages to all main error points in
    compression code for all algorithms. Currently there's no way to know
    which inode is affected or where in the data errors happened.
    
    The messages follow a common format:
    
    - what happened
    - error code if relevant
    - root and inode
    - additional data like offsets or lengths
    
    There's no helper for the messages as they differ in some details and
    that would be cumbersome to generalize to a single function. As all the
    errors are "almost never happens" there are the unlikely annotations
    done as compression is hot path.
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    be9438f0
zlib.c 12.3 KB