From: Al Viro Date: Tue, 7 Apr 2015 00:50:38 +0000 (-0400) Subject: new_sync_write(): discard ->ki_pos unless the return value is positive X-Git-Tag: omap-for-v4.1/fixes-rc1~116^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f765b134c0d3f294f6084d3e0a11de184059a387;p=pandora-kernel.git new_sync_write(): discard ->ki_pos unless the return value is positive That allows ->write_iter() instances much more convenient life wrt iocb->ki_pos (and fixes several filesystems with borderline POSIX violations when zero-length write succeeds and changes the current position). Signed-off-by: Al Viro --- Reading git-diff-tree failed