diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-20 13:44:35 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-20 13:44:35 -0500 |
commit | e17b1fc4b35399935f00a635206e183d9292fe4f (patch) | |
tree | 950fd4a83d7b6ff89286fd89a9871b0da66a4435 /fs/nfs | |
parent | a37ec012d7fd352648c8455d3396ea24001efcd3 (diff) |
NFS: Make nfs_commit_alloc() extern
We need to use nfs_commit_alloc() in fs/nfs/direct.c.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 875f5b060533..f7c8be0beccf 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -91,7 +91,7 @@ static mempool_t *nfs_commit_mempool; | |||
91 | 91 | ||
92 | static DECLARE_WAIT_QUEUE_HEAD(nfs_write_congestion); | 92 | static DECLARE_WAIT_QUEUE_HEAD(nfs_write_congestion); |
93 | 93 | ||
94 | static inline struct nfs_write_data *nfs_commit_alloc(unsigned int pagecount) | 94 | struct nfs_write_data *nfs_commit_alloc(unsigned int pagecount) |
95 | { | 95 | { |
96 | struct nfs_write_data *p = mempool_alloc(nfs_commit_mempool, SLAB_NOFS); | 96 | struct nfs_write_data *p = mempool_alloc(nfs_commit_mempool, SLAB_NOFS); |
97 | 97 | ||
@@ -112,7 +112,7 @@ static inline struct nfs_write_data *nfs_commit_alloc(unsigned int pagecount) | |||
112 | return p; | 112 | return p; |
113 | } | 113 | } |
114 | 114 | ||
115 | static inline void nfs_commit_free(struct nfs_write_data *p) | 115 | void nfs_commit_free(struct nfs_write_data *p) |
116 | { | 116 | { |
117 | if (p && (p->pagevec != &p->page_array[0])) | 117 | if (p && (p->pagevec != &p->page_array[0])) |
118 | kfree(p->pagevec); | 118 | kfree(p->pagevec); |