CIFS: Implement cifs_strict_fsync
authorPavel Shilovsky <piastryyy@gmail.com>
Sun, 12 Dec 2010 10:11:13 +0000 (13:11 +0300)
committerSteve French <sfrench@us.ibm.com>
Thu, 20 Jan 2011 21:42:21 +0000 (21:42 +0000)
commit8be7e6ba142423e6ad98fed293c96f196f685229
tree25bd7ce4aed4740082f0a472a8eed35127d9d61e
parent4f8ba8a0c095933dd54a2c281750c8a85b329b26
CIFS: Implement cifs_strict_fsync

Invalidate inode mapping if we don't have at least Level II oplock in
cifs_strict_fsync. Also remove filemap_write_and_wait call from cifs_fsync
because it is previously called from vfs_fsync_range. Add file operations'
structures for strict cache mode.

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/cifsfs.c
fs/cifs/cifsfs.h
fs/cifs/file.c
fs/cifs/inode.c