diff options
author | Pavel Shilovsky <piastryyy@gmail.com> | 2010-12-14 08:50:41 (GMT) |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-01-20 21:42:29 (GMT) |
commit | a70307eeeb25b89f6b2baf3cf3f0cef83c96ba12 (patch) | |
tree | f96abbc5d22884fd4c15fdc834c769b7fcf790c4 /fs/cifs/cifsfs.c | |
parent | 7a6a19b17ab9103ec708c18befd28f2a3908d4c1 (diff) | |
download | linux-fsl-qoriq-a70307eeeb25b89f6b2baf3cf3f0cef83c96ba12.tar.xz |
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 e24d966..a8323f1 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -736,7 +736,7 @@ const struct file_operations cifs_file_ops = { const struct file_operations cifs_file_strict_ops = { .read = do_sync_read, .write = do_sync_write, - .aio_read = generic_file_aio_read, + .aio_read = cifs_strict_readv, .aio_write = cifs_file_aio_write, .open = cifs_open, .release = cifs_close, @@ -792,7 +792,7 @@ const struct file_operations cifs_file_nobrl_ops = { const struct file_operations cifs_file_strict_nobrl_ops = { .read = do_sync_read, .write = do_sync_write, - .aio_read = generic_file_aio_read, + .aio_read = cifs_strict_readv, .aio_write = cifs_file_aio_write, .open = cifs_open, .release = cifs_close, |