Changeset View
Changeset View
Standalone View
Standalone View
sys/ufs/ufs/ufsmount.h
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | struct ufsmount { | ||||
time_t um_itime[MAXQUOTAS]; /* (q) inode quota time limit */ | time_t um_itime[MAXQUOTAS]; /* (q) inode quota time limit */ | ||||
char um_qflags[MAXQUOTAS]; /* (i) quota specific flags */ | char um_qflags[MAXQUOTAS]; /* (i) quota specific flags */ | ||||
int64_t um_savedmaxfilesize; /* (c) track maxfilesize */ | int64_t um_savedmaxfilesize; /* (c) track maxfilesize */ | ||||
u_int um_flags; /* (i) filesystem flags */ | u_int um_flags; /* (i) filesystem flags */ | ||||
struct timeval um_last_fullmsg; /* (i) last full msg time */ | struct timeval um_last_fullmsg; /* (i) last full msg time */ | ||||
int um_secs_fullmsg; /* (i) seconds since full msg */ | int um_secs_fullmsg; /* (i) seconds since full msg */ | ||||
struct timeval um_last_integritymsg; /* (i) last integrity msg */ | struct timeval um_last_integritymsg; /* (i) last integrity msg */ | ||||
int um_secs_integritymsg; /* (i) secs since integ msg */ | int um_secs_integritymsg; /* (i) secs since integ msg */ | ||||
uint64_t um_maxsymlinklen; /* max size of short symlink */ | |||||
mckusick: This belongs with the other constant fields near top of ufsmount structure. I recommend… | |||||
u_int um_trim_inflight; /* (i) outstanding trim count */ | u_int um_trim_inflight; /* (i) outstanding trim count */ | ||||
u_int um_trim_inflight_blks; /* (i) outstanding trim blks */ | u_int um_trim_inflight_blks; /* (i) outstanding trim blks */ | ||||
u_long um_trim_total; /* (i) total trim count */ | u_long um_trim_total; /* (i) total trim count */ | ||||
u_long um_trim_total_blks; /* (i) total trim block count */ | u_long um_trim_total_blks; /* (i) total trim block count */ | ||||
struct taskqueue *um_trim_tq; /* (c) trim request queue */ | struct taskqueue *um_trim_tq; /* (c) trim request queue */ | ||||
struct trimlist_hashhead *um_trimhash; /* (i) trimlist hash table */ | struct trimlist_hashhead *um_trimhash; /* (i) trimlist hash table */ | ||||
u_long um_trimlisthashsize; /* (i) trim hash table size-1 */ | u_long um_trimlisthashsize; /* (i) trim hash table size-1 */ | ||||
struct fsfail_task *um_fsfail_task; /* (i) task for fsfail cleanup*/ | struct fsfail_task *um_fsfail_task; /* (i) task for fsfail cleanup*/ | ||||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Macros to access filesystem parameters in the ufsmount structure. | * Macros to access filesystem parameters in the ufsmount structure. | ||||
* Used by ufs_bmap. | * Used by ufs_bmap. | ||||
*/ | */ | ||||
#define MNINDIR(ump) ((ump)->um_nindir) | #define MNINDIR(ump) ((ump)->um_nindir) | ||||
#define blkptrtodb(ump, b) ((b) << (ump)->um_bptrtodb) | #define blkptrtodb(ump, b) ((b) << (ump)->um_bptrtodb) | ||||
#define is_sequential(ump, a, b) ((b) == (a) + ump->um_seqinc) | #define is_sequential(ump, a, b) ((b) == (a) + ump->um_seqinc) | ||||
/* true if old FS format...*/ | |||||
#define OFSFMT(vp) (VFSTOUFS((vp)->v_mount)->um_maxsymlinklen <= 0) | |||||
#endif | #endif |
This belongs with the other constant fields near top of ufsmount structure. I recommend following um_nindir. Also needs (c) at start of its comment.