From: Jeff Layton Date: Fri, 13 Apr 2012 21:16:59 +0000 (-0400) Subject: cifs: fix offset handling in cifs_iovec_write X-Git-Tag: v3.4-rc5~10^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3af9d8f227a31e25b3110ef175d105798fc147a6;p=pandora-kernel.git cifs: fix offset handling in cifs_iovec_write In the recent update of the cifs_iovec_write code to use async writes, the handling of the file position was broken. That patch added a local "offset" variable to handle the offset, and then only updated the original "*poffset" before exiting. Unfortunately, it copied off the original offset from the beginning, instead of doing so after generic_write_checks had been called. Fix this by moving the initialization of "offset" after that in the function. Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed