direct.c (35754bc00e94e598c432ad02f7a3d3063c4402e3) | direct.c (6296556f0b31eaff29f2a3aee2c17b7eae895b98) |
---|---|
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 --- 32 unchanged lines hidden (view full) --- 41#include <linux/errno.h> 42#include <linux/sched.h> 43#include <linux/kernel.h> 44#include <linux/file.h> 45#include <linux/pagemap.h> 46#include <linux/kref.h> 47#include <linux/slab.h> 48#include <linux/task_io_accounting_ops.h> | 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 --- 32 unchanged lines hidden (view full) --- 41#include <linux/errno.h> 42#include <linux/sched.h> 43#include <linux/kernel.h> 44#include <linux/file.h> 45#include <linux/pagemap.h> 46#include <linux/kref.h> 47#include <linux/slab.h> 48#include <linux/task_io_accounting_ops.h> |
49#include <linux/module.h> |
|
49 50#include <linux/nfs_fs.h> 51#include <linux/nfs_page.h> 52#include <linux/sunrpc/clnt.h> 53 54#include <asm/uaccess.h> 55#include <linux/atomic.h> 56 --- 129 unchanged lines hidden (view full) --- 186 kmem_cache_free(nfs_direct_cachep, dreq); 187} 188 189static void nfs_direct_req_release(struct nfs_direct_req *dreq) 190{ 191 kref_put(&dreq->kref, nfs_direct_req_free); 192} 193 | 50 51#include <linux/nfs_fs.h> 52#include <linux/nfs_page.h> 53#include <linux/sunrpc/clnt.h> 54 55#include <asm/uaccess.h> 56#include <linux/atomic.h> 57 --- 129 unchanged lines hidden (view full) --- 187 kmem_cache_free(nfs_direct_cachep, dreq); 188} 189 190static void nfs_direct_req_release(struct nfs_direct_req *dreq) 191{ 192 kref_put(&dreq->kref, nfs_direct_req_free); 193} 194 |
195ssize_t nfs_dreq_bytes_left(struct nfs_direct_req *dreq) 196{ 197 return dreq->bytes_left; 198} 199EXPORT_SYMBOL_GPL(nfs_dreq_bytes_left); 200 |
|
194/* 195 * Collects and returns the final error value/byte-count. 196 */ 197static ssize_t nfs_direct_wait(struct nfs_direct_req *dreq) 198{ 199 ssize_t result = -EIOCBQUEUED; 200 201 /* Async requests don't wait here */ --- 834 unchanged lines hidden --- | 201/* 202 * Collects and returns the final error value/byte-count. 203 */ 204static ssize_t nfs_direct_wait(struct nfs_direct_req *dreq) 205{ 206 ssize_t result = -EIOCBQUEUED; 207 208 /* Async requests don't wait here */ --- 834 unchanged lines hidden --- |