• Miao Xie's avatar
    Btrfs: update the global reserve if it is empty · d88033db
    Miao Xie authored
    Before applying this patch, we reserved the space for the global reserve
    by the minimum unit if we found it is empty, it was unreasonable and
    inefficient, because if the global reserve space was depleted, it implied
    that the size of the global reserve was too small. In this case, we shoud
    update the global reserve and fill it.
    
    Cc: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
    Signed-off-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    d88033db
extent-tree.c 228 KB