Lines Matching refs:old
29 static errcode_t bma_put(ext2_brel brel, blk_t old,
31 static errcode_t bma_get(ext2_brel brel, blk_t old,
34 static errcode_t bma_next(ext2_brel brel, blk_t *old,
36 static errcode_t bma_move(ext2_brel brel, blk_t old, blk_t new);
37 static errcode_t bma_delete(ext2_brel brel, blk_t old);
104 static errcode_t bma_put(ext2_brel brel, blk_t old, in bma_put() argument
110 if (old > ma->max_block) in bma_put()
112 ma->entries[(unsigned)old] = *ent; in bma_put()
116 static errcode_t bma_get(ext2_brel brel, blk_t old, in bma_get() argument
122 if (old > ma->max_block) in bma_get()
124 if (ma->entries[(unsigned)old].new == 0) in bma_get()
126 *ent = ma->entries[old]; in bma_get()
136 static errcode_t bma_next(ext2_brel brel, blk_t *old, in bma_next() argument
145 *old = brel->current; in bma_next()
149 *old = 0; in bma_next()
153 static errcode_t bma_move(ext2_brel brel, blk_t old, blk_t new) in bma_move() argument
158 if ((old > ma->max_block) || (new > ma->max_block)) in bma_move()
160 if (ma->entries[(unsigned)old].new == 0) in bma_move()
162 ma->entries[(unsigned)new] = ma->entries[old]; in bma_move()
163 ma->entries[(unsigned)old].new = 0; in bma_move()
167 static errcode_t bma_delete(ext2_brel brel, blk_t old) in bma_delete() argument
172 if (old > ma->max_block) in bma_delete()
174 if (ma->entries[(unsigned)old].new == 0) in bma_delete()
176 ma->entries[(unsigned)old].new = 0; in bma_delete()