]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't ignore log btree writeback errors
authorFilipe Manana <fdmanana@suse.com>
Thu, 13 Nov 2014 16:59:53 +0000 (16:59 +0000)
committerChris Mason <clm@fb.com>
Fri, 21 Nov 2014 19:59:55 +0000 (11:59 -0800)
commit41d37b90f550fb2b33b6ef18845883fb9a854ca2
tree4802373217d37ebbdbfadd5fc2093ce4e682efe4
parent567e3aab0f7bdc25b10b50d5b237d00effc40d3f
Btrfs: don't ignore log btree writeback errors

If an error happens during writeback of log btree extents, make sure the
error is returned to the caller (fsync), so that it takes proper action
(commit current transaction) instead of writing a superblock that points
to log btrees with all or some nodes that weren't durably persisted.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/tree-log.c