Changeset View
Changeset View
Standalone View
Standalone View
fs/nfsclient/nfsnode.h
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
* If this structure exceeds 256 bytes (it is currently 256 using 4.4BSD-Lite | * If this structure exceeds 256 bytes (it is currently 256 using 4.4BSD-Lite | ||||
* type definitions), file handles of > 32 bytes should probably be split out | * type definitions), file handles of > 32 bytes should probably be split out | ||||
* into a separate malloc()'d data structure. (Reduce the size of nfsfh_t by | * into a separate malloc()'d data structure. (Reduce the size of nfsfh_t by | ||||
* changing the definition in nfsproto.h of NFS_SMALLFH.) | * changing the definition in nfsproto.h of NFS_SMALLFH.) | ||||
* NB: Hopefully the current order of the fields is such that everything will | * NB: Hopefully the current order of the fields is such that everything will | ||||
* be well aligned and, therefore, tightly packed. | * be well aligned and, therefore, tightly packed. | ||||
*/ | */ | ||||
struct nfsnode { | struct nfsnode { | ||||
struct mtx n_mtx; /* Protects all of these members */ | struct sx n_sx; /* Protects all of these members */ | ||||
struct lock n_excl; /* Exclusive helper for shared | struct lock n_excl; /* Exclusive helper for shared | ||||
vnode lock */ | vnode lock */ | ||||
u_quad_t n_size; /* Current size of file */ | u_quad_t n_size; /* Current size of file */ | ||||
u_quad_t n_brev; /* Modify rev when cached */ | u_quad_t n_brev; /* Modify rev when cached */ | ||||
u_quad_t n_lrev; /* Modify rev for lease */ | u_quad_t n_lrev; /* Modify rev for lease */ | ||||
struct nfsvattr n_vattr; /* Vnode attribute cache */ | struct nfsvattr n_vattr; /* Vnode attribute cache */ | ||||
time_t n_attrstamp; /* Attr. cache timestamp */ | time_t n_attrstamp; /* Attr. cache timestamp */ | ||||
struct nfs_accesscache n_accesscache[NFS_ACCESSCACHESIZE]; | struct nfs_accesscache n_accesscache[NFS_ACCESSCACHESIZE]; | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |