/* Since each block in the file system is represented by two bits in the *bitmap,one64-bitwordinthebitmapwillrepresent32blocks. *Byreserving32blocksatatime,wecanoptimize/shortcuthowwesearch *throughthebitmapsbylookingawordatatime.
*/ #define RGRP_RSRV_MINBLKS 32 #define RGRP_RSRV_ADDBLKS 64
/* This is how to tell if a reservation is in the rgrp tree: */ staticinlinebool gfs2_rs_active(conststruct gfs2_blkreserv *rs)
{ return !RB_EMPTY_NODE(&rs->rs_node);
}
staticinlineint rgrp_contains_block(struct gfs2_rgrpd *rgd, u64 block)
{
u64 first = rgd->rd_data0;
u64 last = first + rgd->rd_data; return first <= block && block < last;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.