Home
last modified time | relevance | path

Searched refs:cmp (Results 1 – 25 of 27) sorted by relevance

12

/fs/ubifs/
Dtnc_misc.c130 int uninitialized_var(cmp); in ubifs_search_zbranch()
137 cmp = keys_cmp(c, key, &zbr[mid].key); in ubifs_search_zbranch()
138 if (cmp > 0) in ubifs_search_zbranch()
140 else if (cmp < 0) in ubifs_search_zbranch()
271 int i, err, type, cmp; in read_znode() local
374 cmp = keys_cmp(c, key1, key2); in read_znode()
375 if (cmp > 0) { in read_znode()
379 } else if (cmp == 0 && !is_hash_key(c, key1)) { in read_znode()
Ddebug.c1175 int err, nlen1, nlen2, cmp; in dbg_check_key_order() local
1233 cmp = memcmp(dent1->name, dent2->name, min_t(int, nlen1, nlen2)); in dbg_check_key_order()
1234 if (cmp < 0 || (cmp == 0 && nlen1 < nlen2)) { in dbg_check_key_order()
1238 if (cmp == 0 && nlen1 == nlen2) in dbg_check_key_order()
1267 int n, err, cmp; in dbg_check_znode() local
1347 cmp = keys_cmp(c, min, &znode->zbranch[0].key); in dbg_check_znode()
1348 if (cmp == 1) { in dbg_check_znode()
1361 cmp = keys_cmp(c, max, in dbg_check_znode()
1363 if (cmp == -1) { in dbg_check_znode()
1381 cmp = keys_cmp(c, &znode->zbranch[n - 1].key, in dbg_check_znode()
[all …]
Dtnc.c895 int uninitialized_var(o_n), err, cmp, unsure = 0, nn = *n; in fallible_resolve_collision()
897 cmp = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
898 if (unlikely(cmp < 0)) in fallible_resolve_collision()
899 return cmp; in fallible_resolve_collision()
900 if (cmp == NAME_MATCHES) in fallible_resolve_collision()
902 if (cmp == NOT_ON_MEDIA) { in fallible_resolve_collision()
914 if (cmp == NAME_GREATER || unsure) { in fallible_resolve_collision()
960 if (cmp == NAME_LESS || unsure) { in fallible_resolve_collision()
/fs/jfs/
Djfs_xtree.c138 int cmp; in xtLookup() local
163 if ((rc = xtSearch(ip, lstart, &next, &cmp, &btstack, 0))) { in xtLookup()
181 if (cmp) { in xtLookup()
231 int cmp = 1; /* init for empty page */ in xtSearch() local
371 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearch()
372 if (cmp == 0) { in xtSearch()
380 *cmpp = cmp; in xtSearch()
417 if (cmp > 0) { in xtSearch()
438 *cmpp = cmp; in xtSearch()
537 int cmp; in xtInsert() local
[all …]
Djfs_imap.c848 struct metapage *mp, *amp, *bmp, *cmp, *dmp; in diFree() local
1024 amp = bmp = cmp = dmp = NULL; in diFree()
1091 diIAGRead(imap, inofreefwd, &cmp))) in diFree()
1093 ciagp = (struct iag *) cmp->data; in diFree()
1215 if (cmp) in diFree()
1216 write_metapage(cmp); in diFree()
1277 if (cmp) in diFree()
1278 release_metapage(cmp); in diFree()
2154 struct metapage *amp, *bmp, *cmp, *dmp; in diNewExt() local
2175 amp = bmp = cmp = NULL; in diNewExt()
[all …]
Djfs_dtree.c571 int cmp = 1; /* init for empty page */ in dtSearch() local
638 cmp = in dtSearch()
644 cmp = dtCompare(&ciKey, p, stbl[index]); in dtSearch()
648 if (cmp == 0) { in dtSearch()
707 if (cmp > 0) { in dtSearch()
/fs/jffs2/
Dxattr.c640 struct jffs2_xattr_ref *ref, *cmp, **pref, **pcmp; in check_xattr_ref_inode() local
658 for (cmp=ref->next, pcmp=&ref->next; cmp; pcmp=&cmp->next, cmp=cmp->next) { in check_xattr_ref_inode()
659 if (!cmp->xd->xname) { in check_xattr_ref_inode()
661 rc = load_xattr_datum(c, cmp->xd); in check_xattr_ref_inode()
664 *pcmp = cmp->next; in check_xattr_ref_inode()
665 delete_xattr_ref(c, cmp); in check_xattr_ref_inode()
670 if (ref->xd->xprefix == cmp->xd->xprefix in check_xattr_ref_inode()
671 && !strcmp(ref->xd->xname, cmp->xd->xname)) { in check_xattr_ref_inode()
672 if (ref->xseqno > cmp->xseqno) { in check_xattr_ref_inode()
673 *pcmp = cmp->next; in check_xattr_ref_inode()
[all …]
/fs/proc/
Dproc_sysctl.c96 int cmp; in namecmp() local
102 cmp = memcmp(name1, name2, minlen); in namecmp()
103 if (cmp == 0) in namecmp()
104 cmp = len1 - len2; in namecmp()
105 return cmp; in namecmp()
120 int cmp; in find_entry() local
127 cmp = namecmp(name, namelen, procname, strlen(procname)); in find_entry()
128 if (cmp < 0) in find_entry()
130 else if (cmp > 0) in find_entry()
153 int cmp; in insert_entry() local
[all …]
/fs/ext2/
Dxattr.c173 int cmp; in ext2_xattr_cmp_entry() local
175 cmp = name_index - entry->e_name_index; in ext2_xattr_cmp_entry()
176 if (!cmp) in ext2_xattr_cmp_entry()
177 cmp = name_len - entry->e_name_len; in ext2_xattr_cmp_entry()
178 if (!cmp) in ext2_xattr_cmp_entry()
179 cmp = memcmp(name, entry->e_name, name_len); in ext2_xattr_cmp_entry()
181 return cmp; in ext2_xattr_cmp_entry()
/fs/overlayfs/
Dreaddir.c74 int cmp; in ovl_cache_entry_find_link() local
79 cmp = strncmp(name, tmp->name, len); in ovl_cache_entry_find_link()
80 if (cmp > 0) in ovl_cache_entry_find_link()
82 else if (cmp < 0 || len < tmp->len) in ovl_cache_entry_find_link()
96 int cmp; in ovl_cache_entry_find() local
101 cmp = strncmp(name, p->name, len); in ovl_cache_entry_find()
102 if (cmp > 0) in ovl_cache_entry_find()
104 else if (cmp < 0 || len < p->len) in ovl_cache_entry_find()
/fs/nfsd/
Dnfscache.c345 int cmp; in nfsd_cache_insert() local
352 cmp = nfsd_cache_key_cmp(key, rp, nn); in nfsd_cache_insert()
353 if (cmp < 0) in nfsd_cache_insert()
355 else if (cmp > 0) in nfsd_cache_insert()
/fs/ocfs2/cluster/
Dnodemanager.c76 int cmp; in o2nm_node_ip_tree_lookup() local
81 cmp = memcmp(&ip_needle, &node->nd_ipv4_address, in o2nm_node_ip_tree_lookup()
83 if (cmp < 0) in o2nm_node_ip_tree_lookup()
85 else if (cmp > 0) in o2nm_node_ip_tree_lookup()
Dtcp.c758 int cmp; in o2net_handler_tree_lookup() local
763 cmp = o2net_handler_cmp(nmh, msg_type, key); in o2net_handler_tree_lookup()
765 if (cmp < 0) in o2net_handler_tree_lookup()
767 else if (cmp > 0) in o2net_handler_tree_lookup()
/fs/xfs/libxfs/
Dxfs_dir2_sf.c787 enum xfs_dacmp cmp; /* comparison result */ in xfs_dir2_sf_lookup() local
837 cmp = dp->i_mount->m_dirnameops->compname(args, sfep->name, in xfs_dir2_sf_lookup()
839 if (cmp != XFS_CMP_DIFFERENT && cmp != args->cmpresult) { in xfs_dir2_sf_lookup()
840 args->cmpresult = cmp; in xfs_dir2_sf_lookup()
843 if (cmp == XFS_CMP_EXACT) in xfs_dir2_sf_lookup()
Dxfs_dir2_block.c665 enum xfs_dacmp cmp; /* comparison result */ in xfs_dir2_block_lookup_int() local
721 cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); in xfs_dir2_block_lookup_int()
722 if (cmp != XFS_CMP_DIFFERENT && cmp != args->cmpresult) { in xfs_dir2_block_lookup_int()
723 args->cmpresult = cmp; in xfs_dir2_block_lookup_int()
726 if (cmp == XFS_CMP_EXACT) in xfs_dir2_block_lookup_int()
Dxfs_dir2_leaf.c1184 enum xfs_dacmp cmp; /* name compare result */ in xfs_dir2_leaf_lookup_int() local
1250 cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); in xfs_dir2_leaf_lookup_int()
1251 if (cmp != XFS_CMP_DIFFERENT && cmp != args->cmpresult) { in xfs_dir2_leaf_lookup_int()
1252 args->cmpresult = cmp; in xfs_dir2_leaf_lookup_int()
1255 if (cmp == XFS_CMP_EXACT) { in xfs_dir2_leaf_lookup_int()
Dxfs_dir2_node.c730 enum xfs_dacmp cmp; /* comparison result */ in xfs_dir2_leafn_lookup_for_entry() local
816 cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); in xfs_dir2_leafn_lookup_for_entry()
817 if (cmp != XFS_CMP_DIFFERENT && cmp != args->cmpresult) { in xfs_dir2_leafn_lookup_for_entry()
822 args->cmpresult = cmp; in xfs_dir2_leafn_lookup_for_entry()
834 if (cmp == XFS_CMP_EXACT) in xfs_dir2_leafn_lookup_for_entry()
/fs/notify/
Dmark.c549 int cmp; in fsnotify_add_mark_list() local
608 cmp = fsnotify_compare_groups(lmark->group, mark->group); in fsnotify_add_mark_list()
609 if (cmp >= 0) { in fsnotify_add_mark_list()
/fs/btrfs/
Dref-verify.c167 int cmp; in insert_ref_entry() local
172 cmp = comp_refs(entry, ref); in insert_ref_entry()
173 if (cmp > 0) in insert_ref_entry()
175 else if (cmp < 0) in insert_ref_entry()
Ddelayed-inode.c406 int cmp; in __btrfs_add_delayed_item() local
423 cmp = btrfs_comp_cpu_keys(&item->key, &ins->key); in __btrfs_add_delayed_item()
424 if (cmp < 0) { in __btrfs_add_delayed_item()
427 } else if (cmp > 0) { in __btrfs_add_delayed_item()
Dsend.c6627 int cmp; in tree_compare_item() local
6642 cmp = memcmp_extent_buffer(right_path->nodes[0], tmp_buf, off2, len1); in tree_compare_item()
6643 if (cmp) in tree_compare_item()
6667 int cmp; in btrfs_compare_trees() local
6835 cmp = btrfs_comp_cpu_keys(&left_key, &right_key); in btrfs_compare_trees()
6836 if (cmp < 0) { in btrfs_compare_trees()
6844 } else if (cmp > 0) { in btrfs_compare_trees()
6870 cmp = btrfs_comp_cpu_keys(&left_key, &right_key); in btrfs_compare_trees()
6871 if (cmp < 0) { in btrfs_compare_trees()
6873 } else if (cmp > 0) { in btrfs_compare_trees()
/fs/nfs/
Dnfs4state.c408 int cmp; in nfs4_find_state_owner_locked() local
413 cmp = cred_fscmp(cred, sp->so_cred); in nfs4_find_state_owner_locked()
415 if (cmp < 0) in nfs4_find_state_owner_locked()
417 else if (cmp > 0) in nfs4_find_state_owner_locked()
436 int cmp; in nfs4_insert_state_owner_locked() local
441 cmp = cred_fscmp(new->so_cred, sp->so_cred); in nfs4_insert_state_owner_locked()
443 if (cmp < 0) in nfs4_insert_state_owner_locked()
445 else if (cmp > 0) in nfs4_insert_state_owner_locked()
Ddir.c2285 int cmp = cred_fscmp(cred, entry->cred); in nfs_access_search_rbtree() local
2287 if (cmp < 0) in nfs_access_search_rbtree()
2289 else if (cmp > 0) in nfs_access_search_rbtree()
2377 int cmp; in nfs_access_add_rbtree() local
2383 cmp = cred_fscmp(set->cred, entry->cred); in nfs_access_add_rbtree()
2385 if (cmp < 0) in nfs_access_add_rbtree()
2387 else if (cmp > 0) in nfs_access_add_rbtree()
/fs/ext4/
Dxattr.c286 int cmp = 1; in xattr_find_entry() local
297 cmp = name_index - entry->e_name_index; in xattr_find_entry()
298 if (!cmp) in xattr_find_entry()
299 cmp = name_len - entry->e_name_len; in xattr_find_entry()
300 if (!cmp) in xattr_find_entry()
301 cmp = memcmp(name, entry->e_name, name_len); in xattr_find_entry()
302 if (cmp <= 0 && (sorted || cmp == 0)) in xattr_find_entry()
306 return cmp ? -ENODATA : 0; in xattr_find_entry()
/fs/ocfs2/
Dxattr.c1077 int i, cmp = 1; in ocfs2_xattr_find_entry() local
1085 cmp = name_index - ocfs2_xattr_get_type(entry); in ocfs2_xattr_find_entry()
1086 if (!cmp) in ocfs2_xattr_find_entry()
1087 cmp = name_len - entry->xe_name_len; in ocfs2_xattr_find_entry()
1088 if (!cmp) in ocfs2_xattr_find_entry()
1089 cmp = memcmp(name, (xs->base + in ocfs2_xattr_find_entry()
1092 if (cmp == 0) in ocfs2_xattr_find_entry()
1098 return cmp ? -ENODATA : 0; in ocfs2_xattr_find_entry()
3756 int i, ret = 0, cmp = 1, block_off, new_offset; in ocfs2_find_xe_in_bucket() local
3774 cmp = name_index - ocfs2_xattr_get_type(xe); in ocfs2_find_xe_in_bucket()
[all …]

12