CIFS: Make cifsFileInfo_put work with strict cache mode
authorPavel Shilovsky <piastryyy@gmail.com>
Sun, 21 Nov 2010 19:36:12 +0000 (22:36 +0300)
committerSteve French <sfrench@us.ibm.com>
Thu, 20 Jan 2011 21:42:17 +0000 (21:42 +0000)
commit4f8ba8a0c095933dd54a2c281750c8a85b329b26
tree511da3f47059fc575a5af4128b76997f67f3a1fe
parent76dcc26f1d7f1c98c3f595379dcd9562f01bf38d
CIFS: Make cifsFileInfo_put work with strict cache mode

On strict cache mode when we close the last file handle of the inode we
should set invalid_mapping flag on this inode to prevent data coherency
problem when we open it again but it has been modified on the server.

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_fs_sb.h
fs/cifs/file.c