From: Al Viro Date: Wed, 8 Apr 2015 21:00:32 +0000 (-0400) Subject: ocfs2: _really_ sync the right range X-Git-Tag: v3.2.69~48 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=dc6f158c9cea7ff050d79f8f6870eb0362fa4f0c;ds=sidebyside ocfs2: _really_ sync the right range commit 64b4e2526d1cf6e6a4db6213d6e2b6e6ab59479a upstream. "ocfs2 syncs the wrong range" had been broken; prior to it the code was doing the wrong thing in case of O_APPEND, all right, but _after_ it we were syncing the wrong range in 100% cases. *ppos, aka iocb->ki_pos is incremented prior to that point, so we are always doing sync on the area _after_ the one we'd written to. Spotted by Joseph Qi back in January; unfortunately, I'd missed his mail back then ;-/ Signed-off-by: Al Viro Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed