]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit87241c2e68451c4d50b60af84f9a3ab119001b4c
treeb7968792b447aaf31a6cb5843ae092ce352c202a
parentd38b349c39a9feb1aca82c3280b9b1234497d582
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