Btrfs: do not backup tree roots when fsync
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 13 Sep 2017 18:25:21 +0000 (12:25 -0600)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Sep 2017 12:53:04 +0000 (14:53 +0200)
commitfed3b381145e2e7c66b0b3f640851e1633ebd07f
tree97cfb34ab8188a3f67aebb344b0909f09fdb5ed3
parentc2faff790ccd11ea5be8e3ca99713f116fcd6030
Btrfs: do not backup tree roots when fsync

It doesn't make sense to backup tree roots when doing fsync, since
during fsync those tree roots have not been consistent on disk.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Qu Wenruo <quwenruo.btrfs@gmx.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c