/fs/afs/ |
D | vl_alias.c | 42 int addr_a, addr_b, diff; in afs_compare_addrs() local 44 diff = (short)srx_a->transport_type - (short)srx_b->transport_type; in afs_compare_addrs() 45 if (diff) in afs_compare_addrs() 54 diff = addr_a - addr_b; in afs_compare_addrs() 55 if (diff == 0) { in afs_compare_addrs() 58 diff = port_a - port_b; in afs_compare_addrs() 66 diff = memcmp(&a->sin6_addr, &b->sin6_addr, 16); in afs_compare_addrs() 67 if (diff == 0) { in afs_compare_addrs() 70 diff = port_a - port_b; in afs_compare_addrs() 77 diff = 1; in afs_compare_addrs() [all …]
|
D | server.c | 30 int seq = 1, diff; in afs_find_server() local 47 diff = ((u16 __force)a->sin6_port - in afs_find_server() 49 if (diff == 0) in afs_find_server() 50 diff = memcmp(&a->sin6_addr, in afs_find_server() 53 if (diff == 0) in afs_find_server() 63 diff = ((u16 __force)a->sin_port - in afs_find_server() 65 if (diff == 0) in afs_find_server() 66 diff = ((u32 __force)a->sin_addr.s_addr - in afs_find_server() 68 if (diff == 0) in afs_find_server() 94 int diff, seq = 1; in afs_find_server_by_uuid() local [all …]
|
D | addr_list.c | 318 int i, diff; in afs_merge_fs_addr6() local 327 diff = memcmp(xdr, &a->sin6_addr, 16); in afs_merge_fs_addr6() 328 if (diff == 0 && port == a_port) in afs_merge_fs_addr6() 330 if (diff == 0 && port < a_port) in afs_merge_fs_addr6() 332 if (diff < 0) in afs_merge_fs_addr6()
|
/fs/hfs/ |
D | sysdep.c | 19 int diff; in hfs_revalidate_dentry() local 29 diff = sys_tz.tz_minuteswest * 60 - HFS_I(inode)->tz_secondswest; in hfs_revalidate_dentry() 30 if (diff) { in hfs_revalidate_dentry() 31 inode->i_ctime.tv_sec += diff; in hfs_revalidate_dentry() 32 inode->i_atime.tv_sec += diff; in hfs_revalidate_dentry() 33 inode->i_mtime.tv_sec += diff; in hfs_revalidate_dentry() 34 HFS_I(inode)->tz_secondswest += diff; in hfs_revalidate_dentry()
|
D | brec.c | 356 int newkeylen, diff; in hfs_brec_update_parent() local 386 diff = newkeylen - fd->keylength; in hfs_brec_update_parent() 387 if (!diff) in hfs_brec_update_parent() 389 if (diff > 0) { in hfs_brec_update_parent() 391 if (end_rec_off - end_off < diff) { in hfs_brec_update_parent() 406 hfs_bnode_write_u16(parent, rec_off, start_off + diff); in hfs_brec_update_parent() 412 hfs_bnode_write_u16(parent, rec_off, end_off + diff); in hfs_brec_update_parent() 414 hfs_bnode_move(parent, start_off + diff, start_off, in hfs_brec_update_parent()
|
/fs/nfs/blocklayout/ |
D | extent_tree.c | 286 sector_t diff = new->be_length - new_len; in ext_tree_insert() local 288 new->be_f_offset += diff; in ext_tree_insert() 289 new->be_v_offset += diff; in ext_tree_insert() 299 sector_t diff = new->be_length - new_len; in ext_tree_insert() local 311 new->be_f_offset += diff; in ext_tree_insert() 312 new->be_v_offset += diff; in ext_tree_insert() 436 sector_t diff = start - be->be_f_offset; in ext_tree_mark_written() local 438 left->be_length += diff; in ext_tree_mark_written() 440 be->be_f_offset += diff; in ext_tree_mark_written() 441 be->be_v_offset += diff; in ext_tree_mark_written() [all …]
|
/fs/ext4/ |
D | mmp.c | 148 unsigned long diff; in kmmpd() local 193 diff = jiffies - last_update_time; in kmmpd() 194 if (diff < mmp_update_interval * HZ) in kmmpd() 196 HZ - diff); in kmmpd() 203 diff = jiffies - last_update_time; in kmmpd() 204 if (diff > mmp_check_interval * HZ) { in kmmpd() 236 mmp_check_interval = max(min(EXT4_MMP_CHECK_MULT * diff / HZ, in kmmpd()
|
D | ioctl.c | 120 qsize_t size, size_bl, diff; in swap_inode_boot_loader() local 198 diff = size - size_bl; in swap_inode_boot_loader() 236 if (diff > 0) in swap_inode_boot_loader() 237 dquot_free_space(inode, diff); in swap_inode_boot_loader() 239 err = dquot_alloc_space(inode, -1 * diff); in swap_inode_boot_loader()
|
/fs/btrfs/ |
D | file-item.c | 270 u32 diff; in btrfs_lookup_bio_sums() local 368 diff = disk_bytenr - item_start_offset; in btrfs_lookup_bio_sums() 369 diff = diff / fs_info->sectorsize; in btrfs_lookup_bio_sums() 370 diff = diff * csum_size; in btrfs_lookup_bio_sums() 374 ((unsigned long)item) + diff, in btrfs_lookup_bio_sums() 969 u32 diff; in btrfs_csum_file_blocks() local 976 diff = (csum_offset + extend_nr) * csum_size; in btrfs_csum_file_blocks() 977 diff = min(diff, in btrfs_csum_file_blocks() 980 diff = diff - btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_csum_file_blocks() 981 diff = min_t(u32, btrfs_leaf_free_space(leaf), diff); in btrfs_csum_file_blocks() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_alloc_btree.c | 251 int64_t diff; in xfs_cntbt_key_diff() local 253 diff = (int64_t)be32_to_cpu(kp->ar_blockcount) - rec->ar_blockcount; in xfs_cntbt_key_diff() 254 if (diff) in xfs_cntbt_key_diff() 255 return diff; in xfs_cntbt_key_diff() 276 int64_t diff; in xfs_cntbt_diff_two_keys() local 278 diff = be32_to_cpu(k1->alloc.ar_blockcount) - in xfs_cntbt_diff_two_keys() 280 if (diff) in xfs_cntbt_diff_two_keys() 281 return diff; in xfs_cntbt_diff_two_keys()
|
D | xfs_alloc.c | 281 xfs_extlen_t diff; in xfs_alloc_compute_aligned() local 292 diff = args->min_agbno - bno; in xfs_alloc_compute_aligned() 293 if (len > diff) { in xfs_alloc_compute_aligned() 294 bno += diff; in xfs_alloc_compute_aligned() 295 len -= diff; in xfs_alloc_compute_aligned() 302 diff = aligned_bno - bno; in xfs_alloc_compute_aligned() 305 *reslen = diff >= len ? 0 : len - diff; in xfs_alloc_compute_aligned() 744 xfs_extlen_t diff; /* diff from search bno */ member 769 acur->diff = -1; in xfs_alloc_cur_setup() 831 xfs_extlen_t len, lena, diff = -1; in xfs_alloc_cur_check() local [all …]
|
D | xfs_btree.c | 1813 int64_t diff; /* difference for the current key */ in xfs_btree_lookup() local 1839 for (level = cur->bc_nlevels - 1, diff = 1; level >= 0; level--) { in xfs_btree_lookup() 1845 if (diff == 0) { in xfs_btree_lookup() 1895 diff = cur->bc_ops->key_diff(cur, kp); in xfs_btree_lookup() 1896 if (diff < 0) in xfs_btree_lookup() 1898 else if (diff > 0) in xfs_btree_lookup() 1914 if (diff > 0 && --keyno < 1) in xfs_btree_lookup() 1927 if (dir != XFS_LOOKUP_LE && diff < 0) { in xfs_btree_lookup() 1948 } else if (dir == XFS_LOOKUP_LE && diff > 0) in xfs_btree_lookup() 1955 else if (dir != XFS_LOOKUP_EQ || diff == 0) in xfs_btree_lookup() [all …]
|
/fs/nfs/ |
D | fscache.c | 117 int diff; in nfs_fscache_get_super_cookie() local 157 diff = memcmp(&key->key, &xkey->key, sizeof(key->key)); in nfs_fscache_get_super_cookie() 158 if (diff < 0) in nfs_fscache_get_super_cookie() 160 if (diff > 0) in nfs_fscache_get_super_cookie() 165 diff = memcmp(key->key.uniquifier, in nfs_fscache_get_super_cookie() 168 if (diff < 0) in nfs_fscache_get_super_cookie() 170 if (diff > 0) in nfs_fscache_get_super_cookie()
|
D | dir.c | 264 loff_t diff = desc->ctx->pos - desc->current_index; in nfs_readdir_search_for_pos() local 267 if (diff < 0) in nfs_readdir_search_for_pos() 269 if (diff >= array->size) { in nfs_readdir_search_for_pos() 275 index = (unsigned int)diff; in nfs_readdir_search_for_pos() 2417 unsigned long diff; in nfs_access_cache_enforce_limit() local 2423 diff = nr_entries - nfs_access_max_cachesize; in nfs_access_cache_enforce_limit() 2424 if (diff < nr_to_scan) in nfs_access_cache_enforce_limit() 2425 nr_to_scan = diff; in nfs_access_cache_enforce_limit()
|
/fs/nilfs2/ |
D | bmap.h | 22 #define nilfs_bmap_keydiff_abs(diff) ((diff) < 0 ? -(diff) : (diff)) argument
|
D | bmap.c | 466 __s64 diff; in nilfs_bmap_find_target_seq() local 468 diff = key - bmap->b_last_allocated_key; in nilfs_bmap_find_target_seq() 469 if ((nilfs_bmap_keydiff_abs(diff) < NILFS_INODE_BMAP_SIZE) && in nilfs_bmap_find_target_seq() 471 (bmap->b_last_allocated_ptr + diff > 0)) in nilfs_bmap_find_target_seq() 472 return bmap->b_last_allocated_ptr + diff; in nilfs_bmap_find_target_seq()
|
/fs/jfs/ |
D | jfs_logmgr.h | 483 #define logdiff(diff, lsn, log)\ argument 485 diff = (lsn) - (log)->syncpt;\ 486 if (diff < 0)\ 487 diff += (log)->logsize;\
|
/fs/hfsplus/ |
D | brec.c | 360 int newkeylen, diff; in hfs_brec_update_parent() local 391 diff = newkeylen - fd->keylength; in hfs_brec_update_parent() 392 if (!diff) in hfs_brec_update_parent() 394 if (diff > 0) { in hfs_brec_update_parent() 396 if (end_rec_off - end_off < diff) { in hfs_brec_update_parent() 412 hfs_bnode_write_u16(parent, rec_off, start_off + diff); in hfs_brec_update_parent() 418 hfs_bnode_write_u16(parent, rec_off, end_off + diff); in hfs_brec_update_parent() 420 hfs_bnode_move(parent, start_off + diff, start_off, in hfs_brec_update_parent()
|
/fs/erofs/ |
D | namei.c | 112 int diff; in find_target_block_classic() local 138 diff = erofs_dirnamecmp(name, &dname, &matched); in find_target_block_classic() 141 if (!diff) { in find_target_block_classic() 144 } else if (diff > 0) { in find_target_block_classic()
|
/fs/xfs/ |
D | xfs_extent_busy.c | 639 s32 diff; in xfs_extent_busy_ag_cmp() local 641 diff = b1->agno - b2->agno; in xfs_extent_busy_ag_cmp() 642 if (!diff) in xfs_extent_busy_ag_cmp() 643 diff = b1->bno - b2->bno; in xfs_extent_busy_ag_cmp() 644 return diff; in xfs_extent_busy_ag_cmp()
|
/fs/pstore/ |
D | platform.c | 354 size_t diff; in copy_kmsg_to_buffer() local 359 diff = total_len - psinfo->bufsize + hsize; in copy_kmsg_to_buffer() 361 memcpy(psinfo->buf + hsize, big_oops_buf + diff, in copy_kmsg_to_buffer()
|
/fs/f2fs/ |
D | f2fs.h | 2265 blkcnt_t diff = 0, release = 0; in inc_valid_block_count() local 2304 diff = sbi->total_valid_block_count - avail_user_block_count; in inc_valid_block_count() 2305 if (diff > *count) in inc_valid_block_count() 2306 diff = *count; in inc_valid_block_count() 2307 *count -= diff; in inc_valid_block_count() 2308 release = diff; in inc_valid_block_count() 2309 sbi->total_valid_block_count -= diff; in inc_valid_block_count() 2979 block_t diff, bool add, bool claim) in f2fs_i_blocks_write() argument 2987 dquot_claim_block(inode, diff); in f2fs_i_blocks_write() 2989 dquot_alloc_block_nofail(inode, diff); in f2fs_i_blocks_write() [all …]
|
D | segment.h | 826 time64_t diff, now = ktime_get_boottime_seconds(); in get_mtime() local 833 diff = sit_i->mounted_time - now; in get_mtime() 834 if (sit_i->elapsed_time >= diff) in get_mtime() 835 return sit_i->elapsed_time - diff; in get_mtime()
|
D | checkpoint.c | 360 long diff, written; in f2fs_write_meta_pages() local 376 diff = nr_pages_to_write(sbi, META, wbc); in f2fs_write_meta_pages() 379 wbc->nr_to_write = max((long)0, wbc->nr_to_write - written - diff); in f2fs_write_meta_pages() 1757 u64 sum_diff = 0, diff, count = 0; in __checkpoint_and_complete_reqs() local 1769 diff = (u64)ktime_ms_delta(ktime_get(), req->queue_time); in __checkpoint_and_complete_reqs() 1773 sum_diff += diff; in __checkpoint_and_complete_reqs()
|
/fs/gfs2/ |
D | rgrp.c | 1297 u8 diff; in gfs2_rgrp_send_discards() local 1305 diff = ~(*orig | (*orig >> 1)) & (*clone | (*clone >> 1)); in gfs2_rgrp_send_discards() 1307 diff = ~(*clone | (*clone >> 1)); in gfs2_rgrp_send_discards() 1309 diff &= 0x55; in gfs2_rgrp_send_discards() 1310 if (diff == 0) in gfs2_rgrp_send_discards() 1313 while(diff) { in gfs2_rgrp_send_discards() 1314 if (diff & 1) { in gfs2_rgrp_send_discards() 1332 diff >>= 2; in gfs2_rgrp_send_discards()
|