Btrfs: don't do async reclaim during log replay
authorJosef Bacik <jbacik@fb.com>
Thu, 18 Sep 2014 15:27:17 +0000 (11:27 -0400)
committerChris Mason <clm@fb.com>
Tue, 23 Sep 2014 00:13:31 +0000 (17:13 -0700)
commitf6acfd50110b335c7af636cf1fc8e55319cae5fc
treecfd2993ba149a853872ab7b50ffad9b7a0ed21e6
parent47ab2a6c689913db23ccae38349714edf8365e0a
Btrfs: don't do async reclaim during log replay

Trying to reproduce a log enospc bug I hit a panic in the async reclaim code
during log replay.  This is because we use fs_info->fs_root as our root for
shrinking and such.  Technically we can use whatever root we want, but let's
just not allow async reclaim while we're doing log replay.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c