• Qu Wenruo's avatar
    btrfs: use named constant for reserved device space · 37f85ec3
    Qu Wenruo authored
    There's a reserved space on each device of size 1MiB that can be used by
    bootloaders or to avoid accidental overwrite. Use a symbolic constant
    with the explaining comment instead of hard coding the value and
    multiple comments.
    
    Note: since btrfs-progs v4.1, mkfs.btrfs will reserve the first 1MiB for
    the primary super block (at offset 64KiB), until then the range could
    have been used by mistake. Kernel has been always respecting the 1MiB
    range for writes.
    Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
    Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
    [ update changelog ]
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    37f85ec3
volumes.c 222 KB