]> git.hungrycats.org Git - linux/commit
Btrfs: deal with error on secondary log properly
authorJosef Bacik <jbacik@fb.com>
Tue, 25 Aug 2015 17:01:40 +0000 (13:01 -0400)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Sat, 17 Oct 2015 03:10:59 +0000 (23:10 -0400)
commite1ad66d6a0a490f6aea348cd6a29c2b93f672575
tree453ece756115176c520728c84e38f0d7a99df4de
parentec075b71572179399e8fa9710dc6606fa5cbc24c
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)
fs/btrfs/file.c
fs/btrfs/tree-log.c