/fs/ubifs/ |
D | tnc_misc.c | 140 int uninitialized_var(cmp); in ubifs_search_zbranch() 147 cmp = keys_cmp(c, key, &zbr[mid].key); in ubifs_search_zbranch() 148 if (cmp > 0) in ubifs_search_zbranch() 150 else if (cmp < 0) in ubifs_search_zbranch() 276 int i, err, type, cmp; in read_znode() local 371 cmp = keys_cmp(c, key1, key2); in read_znode() 372 if (cmp > 0) { in read_znode() 376 } else if (cmp == 0 && !is_hash_key(c, key1)) { in read_znode()
|
D | debug.c | 1177 int err, nlen1, nlen2, cmp; in dbg_check_key_order() local 1235 cmp = memcmp(dent1->name, dent2->name, min_t(int, nlen1, nlen2)); in dbg_check_key_order() 1236 if (cmp < 0 || (cmp == 0 && nlen1 < nlen2)) { in dbg_check_key_order() 1240 if (cmp == 0 && nlen1 == nlen2) in dbg_check_key_order() 1269 int n, err, cmp; in dbg_check_znode() local 1349 cmp = keys_cmp(c, min, &znode->zbranch[0].key); in dbg_check_znode() 1350 if (cmp == 1) { in dbg_check_znode() 1363 cmp = keys_cmp(c, max, in dbg_check_znode() 1365 if (cmp == -1) { in dbg_check_znode() 1383 cmp = keys_cmp(c, &znode->zbranch[n - 1].key, in dbg_check_znode() [all …]
|
D | tnc.c | 885 int uninitialized_var(o_n), err, cmp, unsure = 0, nn = *n; in fallible_resolve_collision() 887 cmp = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision() 888 if (unlikely(cmp < 0)) in fallible_resolve_collision() 889 return cmp; in fallible_resolve_collision() 890 if (cmp == NAME_MATCHES) in fallible_resolve_collision() 892 if (cmp == NOT_ON_MEDIA) { in fallible_resolve_collision() 904 if (cmp == NAME_GREATER || unsure) { in fallible_resolve_collision() 950 if (cmp == NAME_LESS || unsure) { in fallible_resolve_collision()
|
/fs/jfs/ |
D | jfs_xtree.c | 151 int cmp; in xtLookup() local 176 if ((rc = xtSearch(ip, lstart, &next, &cmp, &btstack, 0))) { in xtLookup() 194 if (cmp) { in xtLookup() 244 int cmp = 1; /* init for empty page */ in xtSearch() local 384 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearch() 385 if (cmp == 0) { in xtSearch() 393 *cmpp = cmp; in xtSearch() 430 if (cmp > 0) { in xtSearch() 451 *cmpp = cmp; in xtSearch() 550 int cmp; in xtInsert() local [all …]
|
D | jfs_imap.c | 868 struct metapage *mp, *amp, *bmp, *cmp, *dmp; in diFree() local 1044 amp = bmp = cmp = dmp = NULL; in diFree() 1111 diIAGRead(imap, inofreefwd, &cmp))) in diFree() 1113 ciagp = (struct iag *) cmp->data; in diFree() 1235 if (cmp) in diFree() 1236 write_metapage(cmp); in diFree() 1297 if (cmp) in diFree() 1298 release_metapage(cmp); in diFree() 2174 struct metapage *amp, *bmp, *cmp, *dmp; in diNewExt() local 2195 amp = bmp = cmp = NULL; in diNewExt() [all …]
|
D | jfs_dtree.c | 584 int cmp = 1; /* init for empty page */ in dtSearch() local 650 cmp = in dtSearch() 656 cmp = dtCompare(&ciKey, p, stbl[index]); in dtSearch() 660 if (cmp == 0) { in dtSearch() 719 if (cmp > 0) { in dtSearch()
|
/fs/overlayfs/ |
D | readdir.c | 65 int cmp; in ovl_cache_entry_find() local 70 cmp = strncmp(name, p->name, len); in ovl_cache_entry_find() 71 if (cmp > 0) in ovl_cache_entry_find() 73 else if (cmp < 0 || len < p->len) in ovl_cache_entry_find() 111 int cmp; in ovl_cache_entry_add_rb() local 116 cmp = strncmp(name, tmp->name, len); in ovl_cache_entry_add_rb() 117 if (cmp > 0) in ovl_cache_entry_add_rb() 119 else if (cmp < 0 || len < tmp->len) in ovl_cache_entry_add_rb()
|
/fs/jffs2/ |
D | xattr.c | 640 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/notify/ |
D | vfsmount_mark.c | 156 int cmp; in fsnotify_add_vfsmount_mark() local 182 cmp = fsnotify_compare_groups(lmark->group, mark->group); in fsnotify_add_vfsmount_mark() 183 if (cmp < 0) in fsnotify_add_vfsmount_mark()
|
D | fsnotify.c | 260 int cmp = fsnotify_compare_groups(inode_group, in fsnotify() local 262 if (cmp > 0) { in fsnotify() 265 } else if (cmp < 0) { in fsnotify()
|
D | inode_mark.c | 197 int cmp; in fsnotify_add_inode_mark() local 223 cmp = fsnotify_compare_groups(lmark->group, mark->group); in fsnotify_add_inode_mark() 224 if (cmp < 0) in fsnotify_add_inode_mark()
|
/fs/proc/ |
D | proc_sysctl.c | 67 int cmp; in namecmp() local 73 cmp = memcmp(name1, name2, minlen); in namecmp() 74 if (cmp == 0) in namecmp() 75 cmp = len1 - len2; in namecmp() 76 return cmp; in namecmp() 91 int cmp; in find_entry() local 98 cmp = namecmp(name, namelen, procname, strlen(procname)); in find_entry() 99 if (cmp < 0) in find_entry() 101 else if (cmp > 0) in find_entry() 124 int cmp; in insert_entry() local [all …]
|
/fs/ext3/ |
D | xattr.c | 189 int cmp = 1; in ext3_xattr_find_entry() local 196 cmp = name_index - entry->e_name_index; in ext3_xattr_find_entry() 197 if (!cmp) in ext3_xattr_find_entry() 198 cmp = name_len - entry->e_name_len; in ext3_xattr_find_entry() 199 if (!cmp) in ext3_xattr_find_entry() 200 cmp = memcmp(name, entry->e_name, name_len); in ext3_xattr_find_entry() 201 if (cmp <= 0 && (sorted || cmp == 0)) in ext3_xattr_find_entry() 205 if (!cmp && ext3_xattr_check_entry(entry, size)) in ext3_xattr_find_entry() 207 return cmp ? -ENODATA : 0; in ext3_xattr_find_entry()
|
/fs/ext4/ |
D | xattr.c | 274 int cmp = 1; in ext4_xattr_find_entry() local 281 cmp = name_index - entry->e_name_index; in ext4_xattr_find_entry() 282 if (!cmp) in ext4_xattr_find_entry() 283 cmp = name_len - entry->e_name_len; in ext4_xattr_find_entry() 284 if (!cmp) in ext4_xattr_find_entry() 285 cmp = memcmp(name, entry->e_name, name_len); in ext4_xattr_find_entry() 286 if (cmp <= 0 && (sorted || cmp == 0)) in ext4_xattr_find_entry() 290 if (!cmp && ext4_xattr_check_entry(entry, size)) in ext4_xattr_find_entry() 292 return cmp ? -ENODATA : 0; in ext4_xattr_find_entry()
|
/fs/xfs/libxfs/ |
D | xfs_dir2_sf.c | 714 enum xfs_dacmp cmp; /* comparison result */ in xfs_dir2_sf_lookup() local 764 cmp = dp->i_mount->m_dirnameops->compname(args, sfep->name, in xfs_dir2_sf_lookup() 766 if (cmp != XFS_CMP_DIFFERENT && cmp != args->cmpresult) { in xfs_dir2_sf_lookup() 767 args->cmpresult = cmp; in xfs_dir2_sf_lookup() 770 if (cmp == XFS_CMP_EXACT) in xfs_dir2_sf_lookup()
|
D | xfs_dir2_block.c | 677 enum xfs_dacmp cmp; /* comparison result */ in xfs_dir2_block_lookup_int() local 733 cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); in xfs_dir2_block_lookup_int() 734 if (cmp != XFS_CMP_DIFFERENT && cmp != args->cmpresult) { in xfs_dir2_block_lookup_int() 735 args->cmpresult = cmp; in xfs_dir2_block_lookup_int() 738 if (cmp == XFS_CMP_EXACT) in xfs_dir2_block_lookup_int()
|
D | xfs_dir2_leaf.c | 1232 enum xfs_dacmp cmp; /* name compare result */ in xfs_dir2_leaf_lookup_int() local 1298 cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); in xfs_dir2_leaf_lookup_int() 1299 if (cmp != XFS_CMP_DIFFERENT && cmp != args->cmpresult) { in xfs_dir2_leaf_lookup_int() 1300 args->cmpresult = cmp; in xfs_dir2_leaf_lookup_int() 1303 if (cmp == XFS_CMP_EXACT) { in xfs_dir2_leaf_lookup_int()
|
D | xfs_dir2_node.c | 689 enum xfs_dacmp cmp; /* comparison result */ in xfs_dir2_leafn_lookup_for_entry() local 774 cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); in xfs_dir2_leafn_lookup_for_entry() 775 if (cmp != XFS_CMP_DIFFERENT && cmp != args->cmpresult) { in xfs_dir2_leafn_lookup_for_entry() 780 args->cmpresult = cmp; in xfs_dir2_leafn_lookup_for_entry() 792 if (cmp == XFS_CMP_EXACT) in xfs_dir2_leafn_lookup_for_entry()
|
/fs/btrfs/ |
D | delayed-ref.c | 146 int cmp; in tree_insert() local 154 cmp = comp_entry(entry, ins, 1); in tree_insert() 155 if (cmp < 0) in tree_insert() 157 else if (cmp > 0) in tree_insert()
|
D | qgroup.c | 1232 int cmp; in qgroup_oper_exists() local 1238 cmp = comp_oper_exist(cur, oper); in qgroup_oper_exists() 1239 if (cmp < 0) { in qgroup_oper_exists() 1241 } else if (cmp) { in qgroup_oper_exists() 1280 int cmp; in insert_qgroup_oper() local 1287 cmp = comp_oper(cur, oper); in insert_qgroup_oper() 1288 if (cmp < 0) { in insert_qgroup_oper() 1290 } else if (cmp) { in insert_qgroup_oper()
|
D | delayed-inode.c | 409 int cmp; in __btrfs_add_delayed_item() local 425 cmp = btrfs_comp_cpu_keys(&item->key, &ins->key); in __btrfs_add_delayed_item() 426 if (cmp < 0) in __btrfs_add_delayed_item() 428 else if (cmp > 0) in __btrfs_add_delayed_item()
|
D | ctree.c | 5280 int cmp; in tree_compare_item() local 5295 cmp = memcmp_extent_buffer(right_path->nodes[0], tmp_buf, off2, len1); in tree_compare_item() 5296 if (cmp) in tree_compare_item() 5322 int cmp; in btrfs_compare_trees() local 5477 cmp = btrfs_comp_cpu_keys(&left_key, &right_key); in btrfs_compare_trees() 5478 if (cmp < 0) { in btrfs_compare_trees() 5487 } else if (cmp > 0) { in btrfs_compare_trees() 5515 cmp = btrfs_comp_cpu_keys(&left_key, &right_key); in btrfs_compare_trees() 5516 if (cmp < 0) { in btrfs_compare_trees() 5518 } else if (cmp > 0) { in btrfs_compare_trees()
|
/fs/ocfs2/cluster/ |
D | nodemanager.c | 87 int cmp; in o2nm_node_ip_tree_lookup() local 92 cmp = memcmp(&ip_needle, &node->nd_ipv4_address, in o2nm_node_ip_tree_lookup() 94 if (cmp < 0) in o2nm_node_ip_tree_lookup() 96 else if (cmp > 0) in o2nm_node_ip_tree_lookup()
|
D | tcp.c | 772 int cmp; in o2net_handler_tree_lookup() local 777 cmp = o2net_handler_cmp(nmh, msg_type, key); in o2net_handler_tree_lookup() 779 if (cmp < 0) in o2net_handler_tree_lookup() 781 else if (cmp > 0) in o2net_handler_tree_lookup()
|
/fs/ocfs2/ |
D | xattr.c | 1067 int i, cmp = 1; in ocfs2_xattr_find_entry() local 1075 cmp = name_index - ocfs2_xattr_get_type(entry); in ocfs2_xattr_find_entry() 1076 if (!cmp) in ocfs2_xattr_find_entry() 1077 cmp = name_len - entry->xe_name_len; in ocfs2_xattr_find_entry() 1078 if (!cmp) in ocfs2_xattr_find_entry() 1079 cmp = memcmp(name, (xs->base + in ocfs2_xattr_find_entry() 1082 if (cmp == 0) in ocfs2_xattr_find_entry() 1088 return cmp ? -ENODATA : 0; in ocfs2_xattr_find_entry() 3741 int i, ret = 0, cmp = 1, block_off, new_offset; in ocfs2_find_xe_in_bucket() local 3759 cmp = name_index - ocfs2_xattr_get_type(xe); in ocfs2_find_xe_in_bucket() [all …]
|