Home
last modified time | relevance | path

Searched refs:cmp_int (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.12.1/fs/bcachefs/
Dbtree_gc.h61 return cmp_int(l.phase, r.phase) ?: in gc_pos_cmp()
62 cmp_int(gc_btree_order(l.btree), in gc_pos_cmp()
64 cmp_int(l.level, r.level) ?: in gc_pos_cmp()
Dbtree_node_scan.c116 return cmp_int(l->btree_id, r->btree_id) ?: in found_btree_node_cmp_cookie()
117 cmp_int(l->level, r->level) ?: in found_btree_node_cmp_cookie()
118 cmp_int(l->cookie, r->cookie); in found_btree_node_cmp_cookie()
128 return cmp_int(l->seq, r->seq) ?: in found_btree_node_cmp_time()
129 cmp_int(l->journal_seq, r->journal_seq); in found_btree_node_cmp_time()
137 return cmp_int(l->btree_id, r->btree_id) ?: in found_btree_node_cmp_pos()
138 -cmp_int(l->level, r->level) ?: in found_btree_node_cmp_pos()
441 return cmp_int(l->btree_id, r->btree_id) ?: in found_btree_node_range_start_cmp()
442 -cmp_int(l->level, r->level) ?: in found_btree_node_range_start_cmp()
Dbkey.h137 return cmp_int(l.inode, r.inode) ?: in bpos_cmp()
138 cmp_int(l.offset, r.offset) ?: in bpos_cmp()
139 cmp_int(l.snapshot, r.snapshot); in bpos_cmp()
184 return cmp_int(l.inode, r.inode) ?: in bkey_cmp()
185 cmp_int(l.offset, r.offset); in bkey_cmp()
210 return cmp_int(l.hi, r.hi) ?: in bversion_cmp()
211 cmp_int(l.lo, r.lo); in bversion_cmp()
Dbtree_journal_iter.h36 return (cmp_int(l_btree_id, r->btree_id) ?: in __journal_key_cmp()
37 cmp_int(l_level, r->level) ?: in __journal_key_cmp()
Dbtree_journal_iter.c129 int cmp = cmp_int(k->btree_id, iter->btree_id) ?: in journal_iter_verify()
130 cmp_int(k->level, iter->level); in journal_iter_verify()
322 int cmp = cmp_int(k->btree_id, iter->btree_id) ?: in bch2_journal_iter_peek()
323 cmp_int(k->level, iter->level); in bch2_journal_iter_peek()
503 cmp_int(l->journal_seq, r->journal_seq) ?: in journal_sort_key_cmp()
504 cmp_int(l->journal_offset, r->journal_offset); in journal_sort_key_cmp()
Dbbpos.h11 return cmp_int(l.btree, r.btree) ?: bpos_cmp(l.pos, r.pos); in bbpos_cmp()
Djournal_sb.c16 return cmp_int(*l, *r); in u64_cmp()
98 return cmp_int(l->start, r->start); in u64_range_cmp()
Dbkey_cmp.h84 return cmp_int(l_v, r_v); in __bkey_cmp_bits()
Dutil.h636 #define cmp_int(l, r) ((l > r) - (l < r)) macro
640 return cmp_int(l, r); in u8_cmp()
645 return cmp_int(le32_to_cpu(l), le32_to_cpu(r)); in cmp_le32()
Dbtree_write_buffer.h42 return cmp_int(l->btree, r->btree) ?: bpos_cmp(l->k.k.p, r->k.k.p); in wb_key_cmp()
Dbtree_write_buffer.c26 return (cmp_int(l->hi, r->hi) ?: in __wb_key_ref_cmp()
27 cmp_int(l->mi, r->mi) ?: in __wb_key_ref_cmp()
28 cmp_int(l->lo, r->lo)) >= 0; in __wb_key_ref_cmp()
58 return cmp_int(l->journal_seq, r->journal_seq); in wb_key_seq_cmp()
Dfs.h75 return cmp_int(l, r); in ptrcmp()
Dbkey_sort.c78 cmp_int((unsigned long) l, (unsigned long) r); in key_sort_fix_overlapping_cmp()
Dbtree_update.c20 return cmp_int(l->btree_id, r->btree_id) ?: in btree_insert_entry_cmp()
21 cmp_int(l->cached, r->cached) ?: in btree_insert_entry_cmp()
22 -cmp_int(l->level, r->level) ?: in btree_insert_entry_cmp()
Djournal_seq_blacklist.c103 return cmp_int(l->start, r->start); in journal_seq_blacklist_table_cmp()
Dbset.h374 ?: cmp_int(l, r); in bkey_iter_cmp()
Dsuper.c2005 return cmp_int(le64_to_cpu(l->seq), le64_to_cpu(r->seq)) ?: in sb_cmp()
2006 cmp_int(le64_to_cpu(l->write_time), le64_to_cpu(r->write_time)); in sb_cmp()
Ddebug.c574 return cmp_int(l, r); in list_ptr_order_cmp()
Dfsck.c2951 return cmp_int(l->inum, r->inum); in nlink_cmp()
3083 while ((cmp_int(link->inum, k.k->p.offset) ?: in check_nlinks_update_inode()
3084 cmp_int(link->snapshot, k.k->p.snapshot)) < 0) { in check_nlinks_update_inode()
Drecovery.c249 return cmp_int(l->journal_seq - 1, r->journal_seq - 1); in journal_sort_seq_cmp()
Dbtree_iter.c49 return cmp_int(l->btree_id, r_btree_id) ?: in __btree_path_cmp()
50 cmp_int((int) l->cached, (int) r_cached) ?: in __btree_path_cmp()
52 -cmp_int(l->level, r_level); in __btree_path_cmp()
Dmove.c856 if ((cmp_int(btree, end.btree) ?: in bch2_move_btree()
Dbtree_gc.c709 return cmp_int(gc_btree_order(l), gc_btree_order(r)); in btree_id_gc_phase_cmp()
/linux-6.12.1/fs/
Dpipe.c79 #define cmp_int(l, r) ((l > r) - (l < r)) macro
85 return cmp_int((unsigned long) a, (unsigned long) b); in pipe_lock_cmp_fn()
/linux-6.12.1/drivers/md/bcache/
Dbtree.c562 #define cmp_int(l, r) ((l > r) - (l < r)) macro
571 return -cmp_int(a->level, b->level) ?: bkey_cmp(&a->key, &b->key); in btree_lock_cmp_fn()

12