aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/internal.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/internal.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/internal.h')
-rw-r--r--fs/afs/internal.h36
1 files changed, 13 insertions, 23 deletions
diff --git a/fs/afs/internal.h b/fs/afs/internal.h
index 5151d5da2c2f..b6dd20a93cce 100644
--- a/fs/afs/internal.h
+++ b/fs/afs/internal.h
@@ -1,4 +1,4 @@
1/* internal.h: internal AFS stuff 1/* internal AFS stuff
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)
@@ -73,26 +73,16 @@ extern const struct address_space_operations afs_fs_aops;
73extern const struct inode_operations afs_file_inode_operations; 73extern const struct inode_operations afs_file_inode_operations;
74 74
75#ifdef AFS_CACHING_SUPPORT 75#ifdef AFS_CACHING_SUPPORT
76extern int afs_cache_get_page_cookie(struct page *page, 76extern int afs_cache_get_page_cookie(struct page *, struct cachefs_page **);
77 struct cachefs_page **_page_cookie);
78#endif 77#endif
79 78
80/* 79/*
81 * inode.c 80 * inode.c
82 */ 81 */
83extern int afs_iget(struct super_block *sb, struct afs_fid *fid, 82extern int afs_iget(struct super_block *, struct afs_fid *, struct inode **);
84 struct inode **_inode); 83extern int afs_inode_getattr(struct vfsmount *, struct dentry *,
85extern int afs_inode_getattr(struct vfsmount *mnt, struct dentry *dentry, 84 struct kstat *);
86 struct kstat *stat); 85extern void afs_clear_inode(struct inode *);
87extern void afs_clear_inode(struct inode *inode);
88
89/*
90 * key_afs.c
91 */
92#ifdef CONFIG_KEYS
93extern int afs_key_register(void);
94extern void afs_key_unregister(void);
95#endif
96 86
97/* 87/*
98 * main.c 88 * main.c
@@ -110,7 +100,7 @@ extern struct afs_timer afs_mntpt_expiry_timer;
110extern struct afs_timer_ops afs_mntpt_expiry_timer_ops; 100extern struct afs_timer_ops afs_mntpt_expiry_timer_ops;
111extern unsigned long afs_mntpt_expiry_timeout; 101extern unsigned long afs_mntpt_expiry_timeout;
112 102
113extern int afs_mntpt_check_symlink(struct afs_vnode *vnode); 103extern int afs_mntpt_check_symlink(struct afs_vnode *);
114 104
115/* 105/*
116 * super.c 106 * super.c
@@ -123,17 +113,17 @@ extern void afs_fs_exit(void);
123extern struct list_head afs_cb_hash_tbl[]; 113extern struct list_head afs_cb_hash_tbl[];
124extern spinlock_t afs_cb_hash_lock; 114extern spinlock_t afs_cb_hash_lock;
125 115
126#define afs_cb_hash(SRV,FID) \ 116#define afs_cb_hash(SRV, FID) \
127 afs_cb_hash_tbl[((unsigned long)(SRV) + \ 117 afs_cb_hash_tbl[((unsigned long)(SRV) + \
128 (FID)->vid + (FID)->vnode + (FID)->unique) % \ 118 (FID)->vid + (FID)->vnode + (FID)->unique) & \
129 AFS_CB_HASH_COUNT] 119 (AFS_CB_HASH_COUNT - 1)]
130 120
131/* 121/*
132 * proc.c 122 * proc.c
133 */ 123 */
134extern int afs_proc_init(void); 124extern int afs_proc_init(void);
135extern void afs_proc_cleanup(void); 125extern void afs_proc_cleanup(void);
136extern int afs_proc_cell_setup(struct afs_cell *cell); 126extern int afs_proc_cell_setup(struct afs_cell *);
137extern void afs_proc_cell_remove(struct afs_cell *cell); 127extern void afs_proc_cell_remove(struct afs_cell *);
138 128
139#endif /* AFS_INTERNAL_H */ 129#endif /* AFS_INTERNAL_H */