]> 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)
commit81ef70b53c098bb3a19b4663cfd0cb6a9ffb181e
tree4802373217d37ebbdbfadd5fc2093ce4e682efe4
parentb0438e1cc736a5be2460525354a83d4676c0852e
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