• Miao Xie's avatar
    Btrfs: add a new "type" field into the block reservation structure · 66d8f3dd
    Miao Xie authored
    Sometimes we need choose the method of the reservation according to the type
    of the block reservation, such as the reservation for the delayed inode update.
    Now we identify the type just by comparing the address of the reservation
    variants, it is very ugly if it is a temporary one because we need compare it
    with all the common reservation variants. So we add a new "type" field to keep
    the type the reservation variants.
    Signed-off-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
    66d8f3dd
extent-tree.c 215 KB