diff options
| author | Jeff Layton <[email protected]> | 2012-04-13 21:16:59 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2012-04-20 03:16:33 +0000 |
| commit | 3af9d8f227a31e25b3110ef175d105798fc147a6 (patch) | |
| tree | 0431c865502651114d43d5635802a2f949a55a7e /lib/mpi/mpiutil.c | |
| parent | Merge branch 'for-3.4' of git://linux-nfs.org/~bfields/linux (diff) | |
| download | kernel-3af9d8f227a31e25b3110ef175d105798fc147a6.tar.gz kernel-3af9d8f227a31e25b3110ef175d105798fc147a6.zip | |
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 <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
