Btrfs: don't keep trying to build clusters if we are fragmented
If we are extremely fragmented then we won't be able to create a free_cluster.
So if this happens set last_ptr->fragmented so that all future allcations will
give up trying to create a cluster. When we unpin extents we will unset
->fragmented if we free up a sufficient amount of space in a block group.
Thanks,
Signed-off-by: Josef Bacik <jbacik@fb.com>
(cherry picked from commit
1777c70a435eb1c2f109d946f70b4c23498ec8f5)
(cherry picked from commit
62791c26684ec3117037e8968a045eb35a300519)