Lines Matching refs:old
30 static errcode_t bma_put(ext2_brel brel, blk64_t old,
32 static errcode_t bma_get(ext2_brel brel, blk64_t old,
35 static errcode_t bma_next(ext2_brel brel, blk64_t *old,
37 static errcode_t bma_move(ext2_brel brel, blk64_t old, blk64_t new);
38 static errcode_t bma_delete(ext2_brel brel, blk64_t old);
105 static errcode_t bma_put(ext2_brel brel, blk64_t old, in bma_put() argument
111 if (old > ma->max_block) in bma_put()
113 ma->entries[(unsigned)old] = *ent; in bma_put()
117 static errcode_t bma_get(ext2_brel brel, blk64_t old, in bma_get() argument
123 if (old > ma->max_block) in bma_get()
125 if (ma->entries[(unsigned)old].new == 0) in bma_get()
127 *ent = ma->entries[old]; in bma_get()
137 static errcode_t bma_next(ext2_brel brel, blk64_t *old, in bma_next() argument
146 *old = brel->current; in bma_next()
150 *old = 0; in bma_next()
154 static errcode_t bma_move(ext2_brel brel, blk64_t old, blk64_t new) in bma_move() argument
159 if ((old > ma->max_block) || (new > ma->max_block)) in bma_move()
161 if (ma->entries[(unsigned)old].new == 0) in bma_move()
163 ma->entries[(unsigned)new] = ma->entries[old]; in bma_move()
164 ma->entries[(unsigned)old].new = 0; in bma_move()
168 static errcode_t bma_delete(ext2_brel brel, blk64_t old) in bma_delete() argument
173 if (old > ma->max_block) in bma_delete()
175 if (ma->entries[(unsigned)old].new == 0) in bma_delete()
177 ma->entries[(unsigned)old].new = 0; in bma_delete()