direct.c (fcb06702f023a0e7b1e6ebf9746f34b610ca0508) direct.c (59948db3be76099b14c7103d0f46c5454b173c3a)
1/*
2 * linux/fs/nfs/direct.c
3 *
4 * Copyright (C) 2003 by Chuck Lever <cel@netapp.com>
5 *
6 * High-performance uncached I/O for the Linux NFS client
7 *
8 * There are important applications whose performance or correctness

--- 379 unchanged lines hidden (view full) ---

388 unsigned long nr_segs,
389 loff_t pos)
390{
391 struct nfs_pageio_descriptor desc;
392 ssize_t result = -EINVAL;
393 size_t requested_bytes = 0;
394 unsigned long seg;
395
1/*
2 * linux/fs/nfs/direct.c
3 *
4 * Copyright (C) 2003 by Chuck Lever <cel@netapp.com>
5 *
6 * High-performance uncached I/O for the Linux NFS client
7 *
8 * There are important applications whose performance or correctness

--- 379 unchanged lines hidden (view full) ---

388 unsigned long nr_segs,
389 loff_t pos)
390{
391 struct nfs_pageio_descriptor desc;
392 ssize_t result = -EINVAL;
393 size_t requested_bytes = 0;
394 unsigned long seg;
395
396 nfs_pageio_init_read(&desc, dreq->inode,
396 NFS_PROTO(dreq->inode)->read_pageio_init(&desc, dreq->inode,
397 &nfs_direct_read_completion_ops);
398 get_dreq(dreq);
399 desc.pg_dreq = dreq;
400
401 for (seg = 0; seg < nr_segs; seg++) {
402 const struct iovec *vec = &iov[seg];
403 result = nfs_direct_read_schedule_segment(&desc, vec, pos);
404 if (result < 0)

--- 592 unchanged lines hidden ---
397 &nfs_direct_read_completion_ops);
398 get_dreq(dreq);
399 desc.pg_dreq = dreq;
400
401 for (seg = 0; seg < nr_segs; seg++) {
402 const struct iovec *vec = &iov[seg];
403 result = nfs_direct_read_schedule_segment(&desc, vec, pos);
404 if (result < 0)

--- 592 unchanged lines hidden ---