aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/vnode.h
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/vnode.h
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/vnode.h')
-rw-r--r--fs/afs/vnode.h36
1 files changed, 13 insertions, 23 deletions
diff --git a/fs/afs/vnode.h b/fs/afs/vnode.h
index b86a97102e8b..7f6d05b197a6 100644
--- a/fs/afs/vnode.h
+++ b/fs/afs/vnode.h
@@ -1,4 +1,4 @@
1/* vnode.h: AFS vnode record 1/* AFS vnode record
2 * 2 *
3 * Copyright (C) 2002 Red Hat, Inc. All Rights Reserved. 3 * Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com) 4 * Written by David Howells (dhowells@redhat.com)
@@ -9,24 +9,22 @@
9 * 2 of the License, or (at your option) any later version. 9 * 2 of the License, or (at your option) any later version.
10 */ 10 */
11 11
12#ifndef _LINUX_AFS_VNODE_H 12#ifndef AFS_VNODE_H
13#define _LINUX_AFS_VNODE_H 13#define AFS_VNODE_H
14 14
15#include <linux/fs.h> 15#include <linux/fs.h>
16#include "server.h" 16#include "server.h"
17#include "kafstimod.h" 17#include "kafstimod.h"
18#include "cache.h" 18#include "cache.h"
19 19
20#ifdef __KERNEL__
21
22struct afs_rxfs_fetch_descriptor; 20struct afs_rxfs_fetch_descriptor;
23 21
24/*****************************************************************************/ 22extern struct afs_timer_ops afs_vnode_cb_timed_out_ops;
23
25/* 24/*
26 * vnode catalogue entry 25 * vnode catalogue entry
27 */ 26 */
28struct afs_cache_vnode 27struct afs_cache_vnode {
29{
30 afs_vnodeid_t vnode_id; /* vnode ID */ 28 afs_vnodeid_t vnode_id; /* vnode ID */
31 unsigned vnode_unique; /* vnode ID uniquifier */ 29 unsigned vnode_unique; /* vnode ID uniquifier */
32 afs_dataversion_t data_version; /* data version */ 30 afs_dataversion_t data_version; /* data version */
@@ -36,12 +34,10 @@ struct afs_cache_vnode
36extern struct cachefs_index_def afs_vnode_cache_index_def; 34extern struct cachefs_index_def afs_vnode_cache_index_def;
37#endif 35#endif
38 36
39/*****************************************************************************/
40/* 37/*
41 * AFS inode private data 38 * AFS inode private data
42 */ 39 */
43struct afs_vnode 40struct afs_vnode {
44{
45 struct inode vfs_inode; /* the VFS's inode record */ 41 struct inode vfs_inode; /* the VFS's inode record */
46 42
47 struct afs_volume *volume; /* volume on which vnode resides */ 43 struct afs_volume *volume; /* volume on which vnode resides */
@@ -72,7 +68,7 @@ struct afs_vnode
72 68
73static inline struct afs_vnode *AFS_FS_I(struct inode *inode) 69static inline struct afs_vnode *AFS_FS_I(struct inode *inode)
74{ 70{
75 return container_of(inode,struct afs_vnode,vfs_inode); 71 return container_of(inode, struct afs_vnode, vfs_inode);
76} 72}
77 73
78static inline struct inode *AFS_VNODE_TO_I(struct afs_vnode *vnode) 74static inline struct inode *AFS_VNODE_TO_I(struct afs_vnode *vnode)
@@ -80,15 +76,9 @@ static inline struct inode *AFS_VNODE_TO_I(struct afs_vnode *vnode)
80 return &vnode->vfs_inode; 76 return &vnode->vfs_inode;
81} 77}
82 78
83extern int afs_vnode_fetch_status(struct afs_vnode *vnode); 79extern int afs_vnode_fetch_status(struct afs_vnode *);
84 80extern int afs_vnode_fetch_data(struct afs_vnode *,
85extern int afs_vnode_fetch_data(struct afs_vnode *vnode, 81 struct afs_rxfs_fetch_descriptor *);
86 struct afs_rxfs_fetch_descriptor *desc); 82extern int afs_vnode_give_up_callback(struct afs_vnode *);
87
88extern int afs_vnode_give_up_callback(struct afs_vnode *vnode);
89
90extern struct afs_timer_ops afs_vnode_cb_timed_out_ops;
91
92#endif /* __KERNEL__ */
93 83
94#endif /* _LINUX_AFS_VNODE_H */ 84#endif /* AFS_VNODE_H */