aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/file.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2007-04-26 18:49:28 -0400
committerDavid S. Miller <davem@davemloft.net>2007-04-26 18:49:28 -0400
commitec26815ad847dbf74a1e27aa5515fb7d5dc6ee6f (patch)
tree32510ab35b3524f6be9231ab8065b80be5d9b68d /fs/afs/file.c
parent17926a79320afa9b95df6b977b40cca6d8713cea (diff)
[AFS]: Clean up the AFS sources
Clean up the AFS sources. Also remove references to AFS keys. RxRPC keys are used instead. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/afs/file.c')
-rw-r--r--fs/afs/file.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/fs/afs/file.c b/fs/afs/file.c
index b17634541f67..01df30d256b8 100644
--- a/fs/afs/file.c
+++ b/fs/afs/file.c
@@ -40,7 +40,6 @@ const struct address_space_operations afs_fs_aops = {
40 .invalidatepage = afs_file_invalidatepage, 40 .invalidatepage = afs_file_invalidatepage,
41}; 41};
42 42
43/*****************************************************************************/
44/* 43/*
45 * deal with notification that a page was read from the cache 44 * deal with notification that a page was read from the cache
46 */ 45 */
@@ -58,10 +57,9 @@ static void afs_file_readpage_read_complete(void *cookie_data,
58 SetPageUptodate(page); 57 SetPageUptodate(page);
59 unlock_page(page); 58 unlock_page(page);
60 59
61} /* end afs_file_readpage_read_complete() */ 60}
62#endif 61#endif
63 62
64/*****************************************************************************/
65/* 63/*
66 * deal with notification that a page was written to the cache 64 * deal with notification that a page was written to the cache
67 */ 65 */
@@ -74,11 +72,9 @@ static void afs_file_readpage_write_complete(void *cookie_data,
74 _enter("%p,%p,%p,%d", cookie_data, page, data, error); 72 _enter("%p,%p,%p,%d", cookie_data, page, data, error);
75 73
76 unlock_page(page); 74 unlock_page(page);
77 75}
78} /* end afs_file_readpage_write_complete() */
79#endif 76#endif
80 77
81/*****************************************************************************/
82/* 78/*
83 * AFS read page from file (or symlink) 79 * AFS read page from file (or symlink)
84 */ 80 */
@@ -184,10 +180,8 @@ static int afs_file_readpage(struct file *file, struct page *page)
184 180
185 _leave(" = %d", ret); 181 _leave(" = %d", ret);
186 return ret; 182 return ret;
183}
187 184
188} /* end afs_file_readpage() */
189
190/*****************************************************************************/
191/* 185/*
192 * get a page cookie for the specified page 186 * get a page cookie for the specified page
193 */ 187 */
@@ -202,10 +196,9 @@ int afs_cache_get_page_cookie(struct page *page,
202 196
203 _leave(" = %d", ret); 197 _leave(" = %d", ret);
204 return ret; 198 return ret;
205} /* end afs_cache_get_page_cookie() */ 199}
206#endif 200#endif
207 201
208/*****************************************************************************/
209/* 202/*
210 * invalidate part or all of a page 203 * invalidate part or all of a page
211 */ 204 */
@@ -240,9 +233,8 @@ static void afs_file_invalidatepage(struct page *page, unsigned long offset)
240 } 233 }
241 234
242 _leave(" = %d", ret); 235 _leave(" = %d", ret);
243} /* end afs_file_invalidatepage() */ 236}
244 237
245/*****************************************************************************/
246/* 238/*
247 * release a page and cleanup its private data 239 * release a page and cleanup its private data
248 */ 240 */
@@ -267,4 +259,4 @@ static int afs_file_releasepage(struct page *page, gfp_t gfp_flags)
267 259
268 _leave(" = 0"); 260 _leave(" = 0");
269 return 0; 261 return 0;
270} /* end afs_file_releasepage() */ 262}