diff options
author | Pavel Shilovsky <piastryyy@gmail.com> | 2010-12-14 03:50:41 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-01-20 16:42:29 -0500 |
commit | a70307eeeb25b89f6b2baf3cf3f0cef83c96ba12 (patch) | |
tree | f96abbc5d22884fd4c15fdc834c769b7fcf790c4 /fs/cifs/cifsfs.c | |
parent | 7a6a19b17ab9103ec708c18befd28f2a3908d4c1 (diff) |
CIFS: Implement cifs_strict_readv (try #4)
Read from the cache if we have at least Level II oplock - otherwise
read from the server. Add cifs_user_readv to let the client read into
iovec buffers.
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index e24d966fb214..a8323f1dc1c4 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -736,7 +736,7 @@ const struct file_operations cifs_file_ops = { | |||
736 | const struct file_operations cifs_file_strict_ops = { | 736 | const struct file_operations cifs_file_strict_ops = { |
737 | .read = do_sync_read, | 737 | .read = do_sync_read, |
738 | .write = do_sync_write, | 738 | .write = do_sync_write, |
739 | .aio_read = generic_file_aio_read, | 739 | .aio_read = cifs_strict_readv, |
740 | .aio_write = cifs_file_aio_write, | 740 | .aio_write = cifs_file_aio_write, |
741 | .open = cifs_open, | 741 | .open = cifs_open, |
742 | .release = cifs_close, | 742 | .release = cifs_close, |
@@ -792,7 +792,7 @@ const struct file_operations cifs_file_nobrl_ops = { | |||
792 | const struct file_operations cifs_file_strict_nobrl_ops = { | 792 | const struct file_operations cifs_file_strict_nobrl_ops = { |
793 | .read = do_sync_read, | 793 | .read = do_sync_read, |
794 | .write = do_sync_write, | 794 | .write = do_sync_write, |
795 | .aio_read = generic_file_aio_read, | 795 | .aio_read = cifs_strict_readv, |
796 | .aio_write = cifs_file_aio_write, | 796 | .aio_write = cifs_file_aio_write, |
797 | .open = cifs_open, | 797 | .open = cifs_open, |
798 | .release = cifs_close, | 798 | .release = cifs_close, |