Btrfs: don't continue setting up space cache when enospc
authorJosef Bacik <jbacik@fb.com>
Thu, 1 Oct 2015 16:55:18 +0000 (12:55 -0400)
committerChris Mason <clm@fb.com>
Thu, 22 Oct 2015 01:55:36 +0000 (18:55 -0700)
commit2968b1f48bd7366dd7310acde1ee6d1bf7791142
tree77ba00b44557b8183168286752bda5f2175dac46
parent4f4db2174d8d6cdc093cbb79d17fbfe0f4d9fbde
Btrfs: don't continue setting up space cache when enospc

If we hit ENOSPC when setting up a space cache don't bother setting up any of
the other space cache's in this transaction, it'll just induce unnecessary
latency.  Thanks,

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