From: Al Viro Date: Fri, 8 Aug 2014 16:39:16 +0000 (-0400) Subject: __generic_file_write_iter(): fix handling of sync error after DIO X-Git-Tag: omap-for-v3.17/fixes-against-rc2~87^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60bb45297f7551833346c5cebc6d483ea17ea5f2;p=pandora-kernel.git __generic_file_write_iter(): fix handling of sync error after DIO If DIO results in short write and sync write fails, we want to bugger off whether the DIO part has written anything or not; the logics on the return will take care of the right return value. Cc: stable@vger.kernel.org [3.16] Reported-by: Anton Altaparmakov Signed-off-by: Al Viro --- Reading git-diff-tree failed