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)
commit5ab5e44a36164f0366a98b47289c868d8fbcb256
tree4802373217d37ebbdbfadd5fc2093ce4e682efe4
parenta28046956c71985046474283fa3bcd256915fb72
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