• Miao Xie's avatar
    Btrfs: fix unprotected ->log_batch · 2ecb7923
    Miao Xie authored
    We forget to protect ->log_batch when syncing a file, this patch fix
    this problem by atomic operation. And ->log_batch is used to check
    if there are parallel sync operations or not, so it is unnecessary to
    reset it to 0 after the sync operation of the current log tree complete.
    Signed-off-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
    2ecb7923
file.c 57.9 KB