From 04ab517de87cb01c49b33afa74b25b7577a91c92 Mon Sep 17 00:00:00 2001 From: Garry Zacheiss Date: Mon, 4 Apr 2005 08:42:59 +0000 Subject: [PATCH] make-afs-h-includable-outside-kernel-20050404 so you don't need to define KERNEL to cinlude this --- src/afs/afs.h | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/src/afs/afs.h b/src/afs/afs.h index 6c7d4b675..ed661bdd4 100644 --- a/src/afs/afs.h +++ b/src/afs/afs.h @@ -904,6 +904,23 @@ struct afs_fheader { #endif #endif +struct buffer { + afs_int32 fid; /* is adc->index, the cache file number */ + afs_inode_t inode; /* is adc->f.inode, the inode number of the cac\ + he file */ + afs_int32 page; + afs_int32 accesstime; + struct buffer *hashNext; + char *data; + char lockers; + char dirty; + char hashIndex; +#if AFS_USEBUFFERS + struct buf *bufp; +#endif + afs_rwlock_t lock; /* the lock for this structure */ +}; + /* kept on disk and in dcache entries */ struct fcache { struct VenusFid fid; /* Fid for this file */ @@ -971,6 +988,14 @@ struct dcache { /* this is obsolete and should be removed */ #define ihint stamp +/* afs_memcache.c */ +struct memCacheEntry { + int size; /* # of valid bytes in this entry */ + int dataSize; /* size of allocated data area */ + afs_lock_t afs_memLock; + char *data; /* bytes */ +}; + /* macro to mark a dcache entry as bad */ #define ZapDCE(x) \ do { \ @@ -1187,30 +1212,6 @@ struct afs_fakestat_state { extern int afs_fakestat_enable; -struct buffer { - afs_int32 fid; /* is adc->index, the cache file number */ - afs_inode_t inode; /* is adc->f.inode, the inode number of the cache file */ - afs_int32 page; - afs_int32 accesstime; - struct buffer *hashNext; - char *data; - char lockers; - char dirty; - char hashIndex; -#if AFS_USEBUFFERS - struct buf *bufp; -#endif - afs_rwlock_t lock; /* the lock for this structure */ -}; - -/* afs_memcache.c */ -struct memCacheEntry { - int size; /* # of valid bytes in this entry */ - int dataSize; /* size of allocated data area */ - afs_lock_t afs_memLock; - char *data; /* bytes */ -}; - /* First 32 bits of capabilities */ #define CAPABILITY_ERRORTRANS (1<<0) -- 2.39.5