read.c (f222e8b40f2177b1c4cac015b117744c1d3fa3e9) read.c (1ae88b2e446261c038f2c0c3150ffae142b227a2)
1/*
2 * linux/fs/nfs/read.c
3 *
4 * Block I/O for NFS
5 *
6 * Partial copy of Linus' read cache modifications to fs/nfs/file.c
7 * modified for async RPC by okir@monad.swb.de
8 */

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

55 mempool_free(p, nfs_rdata_mempool);
56 p = NULL;
57 }
58 }
59 }
60 return p;
61}
62
1/*
2 * linux/fs/nfs/read.c
3 *
4 * Block I/O for NFS
5 *
6 * Partial copy of Linus' read cache modifications to fs/nfs/file.c
7 * modified for async RPC by okir@monad.swb.de
8 */

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

55 mempool_free(p, nfs_rdata_mempool);
56 p = NULL;
57 }
58 }
59 }
60 return p;
61}
62
63static void nfs_readdata_free(struct nfs_read_data *p)
63void nfs_readdata_free(struct nfs_read_data *p)
64{
65 if (p && (p->pagevec != &p->page_array[0]))
66 kfree(p->pagevec);
67 mempool_free(p, nfs_rdata_mempool);
68}
69
64{
65 if (p && (p->pagevec != &p->page_array[0]))
66 kfree(p->pagevec);
67 mempool_free(p, nfs_rdata_mempool);
68}
69
70void nfs_readdata_release(void *data)
70static void nfs_readdata_release(struct nfs_read_data *rdata)
71{
71{
72 struct nfs_read_data *rdata = data;
73
74 put_nfs_open_context(rdata->args.context);
75 nfs_readdata_free(rdata);
76}
77
78static
79int nfs_return_empty_page(struct page *page)
80{
81 zero_user(page, 0, PAGE_CACHE_SIZE);

--- 591 unchanged lines hidden ---
72 put_nfs_open_context(rdata->args.context);
73 nfs_readdata_free(rdata);
74}
75
76static
77int nfs_return_empty_page(struct page *page)
78{
79 zero_user(page, 0, PAGE_CACHE_SIZE);

--- 591 unchanged lines hidden ---