Lines Matching refs:sa
121 struct ubifs_scan_node *sa, *sb; in data_nodes_cmp() local
127 sa = list_entry(a, struct ubifs_scan_node, list); in data_nodes_cmp()
130 ubifs_assert(key_type(c, &sa->key) == UBIFS_DATA_KEY); in data_nodes_cmp()
132 ubifs_assert(sa->type == UBIFS_DATA_NODE); in data_nodes_cmp()
135 inuma = key_inum(c, &sa->key); in data_nodes_cmp()
139 unsigned int blka = key_block(c, &sa->key); in data_nodes_cmp()
165 struct ubifs_scan_node *sa, *sb; in nondata_nodes_cmp() local
171 sa = list_entry(a, struct ubifs_scan_node, list); in nondata_nodes_cmp()
174 ubifs_assert(key_type(c, &sa->key) != UBIFS_DATA_KEY && in nondata_nodes_cmp()
176 ubifs_assert(sa->type != UBIFS_DATA_NODE && in nondata_nodes_cmp()
180 if (sa->type == UBIFS_INO_NODE) { in nondata_nodes_cmp()
182 return sb->len - sa->len; in nondata_nodes_cmp()
188 ubifs_assert(key_type(c, &sa->key) == UBIFS_DENT_KEY || in nondata_nodes_cmp()
189 key_type(c, &sa->key) == UBIFS_XENT_KEY); in nondata_nodes_cmp()
192 ubifs_assert(sa->type == UBIFS_DENT_NODE || in nondata_nodes_cmp()
193 sa->type == UBIFS_XENT_NODE); in nondata_nodes_cmp()
197 inuma = key_inum(c, &sa->key); in nondata_nodes_cmp()
201 uint32_t hasha = key_hash(c, &sa->key); in nondata_nodes_cmp()