[CIFS] Allow local filesize for file that is open for write to be updated
authorSteve French <sfrench@us.ibm.com>
Thu, 12 Jan 2006 22:41:28 +0000 (14:41 -0800)
committerSteve French <sfrench@us.ibm.com>
Thu, 12 Jan 2006 22:41:28 +0000 (14:41 -0800)
commitc32a0b689cb9cc160cfcd19735bbf50bb70c6ef4
tree97addaf85d16d817d4a51d5d04d4e8ceb1edfe17
parentf3f6ec4b77f627a6427460d6f8884e1042eef134
[CIFS] Allow local filesize for file that is open for write to be updated
from server when mount forcedirectio.

Allowing update of file size with non forcedirectio mounts should be
allowed in the fiture but requires carefully writing out the
last page in the local file if it is a partial page in order to
avoid corruption and careful serialization

Thanks to Maximiliano Curia who suggested similar changes and provided
a testcase.

Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsfs.c
fs/cifs/file.c