]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: use root when checking need_async_flush
authorJosef Bacik <jbacik@fb.com>
Mon, 25 Apr 2016 13:58:18 +0000 (09:58 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jul 2016 16:45:53 +0000 (18:45 +0200)
commit61f5378087202cee9e627e516de62e5b83743803
treeb7968792b447aaf31a6cb5843ae092ce352c202a
parent1bc337cb59e658b5aea46441965dbd42b6c6e22c
Btrfs: use root when checking need_async_flush

Instead of doing fs_info->fs_root in need_async_flush, which may not be set
during recovery when mounting, just pass the root itself in, which makes more
sense as thats what btrfs_calc_reclaim_metadata_size takes.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reported-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c