Btrfs: deal with error on secondary log properly
If we have an fsync at the same time in two seperate subvolumes we could end up
with the tree log pointing at invalid blocks. We need to notice if our writeout
failed in anyway, if it did then we need to do a full transaction commit and
return an error on the subvolume that gave us the io error. Thanks,
Signed-off-by: Josef Bacik <jbacik@fb.com>
(cherry picked from commit
d3e532cc080acaf30bac093998e4db4901cf690b)
(cherry picked from commit
6ebeedeb4589872bbae0c52b5981b3a87260543f)
(cherry picked from commit
30c498842353b0def31f5bca8934f9f23481119d)