From: Al Viro Date: Wed, 8 Apr 2015 19:41:17 +0000 (-0400) Subject: [regression] ocfs2: do *not* increment ->ki_pos twice X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf1b5ea1c5cd26a003b01d4798266a4bdf0ffe64;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [regression] ocfs2: do *not* increment ->ki_pos twice generic_file_direct_write() already does that. Broken by "ocfs2: do not fallback to buffer I/O write if appending" Signed-off-by: Al Viro --- diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 46e0d4e857c7..099972490f39 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -2394,7 +2394,6 @@ relock: /* * for completing the rest of the request. */ - *ppos += written; count -= written; written_buffered = generic_perform_write(file, from, *ppos); /*