]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: abort transaction if fill_holes() fails
authorJosef Bacik <jbacik@fb.com>
Mon, 14 Nov 2016 19:06:22 +0000 (14:06 -0500)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 Nov 2016 12:45:19 +0000 (13:45 +0100)
commitf349dc9d9594612ac35a3e1177ee1115b69fc479
tree185626f23c4cf4c5be566f9984d2ede1137904e7
parent59fb5dd459854e4c24ebb6ff195b58f4c8d7c259
Btrfs: abort transaction if fill_holes() fails

At this point we will have dropped extent entries from the file, so if we fail
to insert the new hole entries then we are leaving the fs in a corrupt state
(albeit an easily fixed one).  Abort the transaciton if this happens so we can
avoid corrupting the fs.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c