From: Filipe Manana Date: Mon, 22 Sep 2014 16:41:04 +0000 (+0100) Subject: Btrfs: add missing end_page_writeback on submit_extent_page failure X-Git-Tag: fixes-against-v3.18-rc2~120^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55e3bd2e0c2e1cfb43429b962e61415e0526bc01;p=pandora-kernel.git Btrfs: add missing end_page_writeback on submit_extent_page failure If submit_extent_page() fails in write_one_eb(), we end up with the current page not marked dirty anymore, unlocked and marked for writeback. But we never end up calling end_page_writeback() against the page, which will make calls to filemap_fdatawait_range (e.g. at transaction commit time) hang forever waiting for the writeback bit to be cleared from the page. Signed-off-by: Filipe Manana Reviewed-by: Liu Bo Signed-off-by: Chris Mason --- Reading git-diff-tree failed