/fs/nilfs2/ |
D | recovery.c | 93 struct buffer_head *bhs, u32 *sum, in nilfs_compute_checksum() argument 119 *sum = crc; in nilfs_compute_checksum() 182 struct nilfs_segment_summary **sum) in nilfs_read_log_header() argument 188 *sum = (struct nilfs_segment_summary *)bh_sum->b_data; in nilfs_read_log_header() 201 struct nilfs_segment_summary *sum) in nilfs_validate_log() argument 208 if (le32_to_cpu(sum->ss_magic) != NILFS_SEGSUM_MAGIC) in nilfs_validate_log() 212 if (le64_to_cpu(sum->ss_seq) != seg_seq) in nilfs_validate_log() 215 nblock = le32_to_cpu(sum->ss_nblocks); in nilfs_validate_log() 222 if (nilfs_compute_checksum(nilfs, bh_sum, &crc, sizeof(sum->ss_datasum), in nilfs_validate_log() 228 if (crc != le32_to_cpu(sum->ss_datasum)) in nilfs_validate_log() [all …]
|
D | the_nilfs.c | 433 static unsigned char sum[4]; in nilfs_valid_sb() local 445 crc = crc32_le(crc, sum, 4); in nilfs_valid_sb()
|
/fs/befs/ |
D | datastream.c | 256 befs_blocknr_t sum; in befs_find_brun_direct() local 260 for (i = 0, sum = 0; i < BEFS_NUM_DIRECT_BLOCKS; in befs_find_brun_direct() 261 sum += array[i].len, i++) { in befs_find_brun_direct() 262 if (blockno >= sum && blockno < sum + (array[i].len)) { in befs_find_brun_direct() 263 int offset = blockno - sum; in befs_find_brun_direct() 311 befs_blocknr_t sum = 0; in befs_find_brun_indirect() local 342 if (search_blk >= sum && search_blk < sum + len) { in befs_find_brun_indirect() 343 int offset = search_blk - sum; in befs_find_brun_indirect() 359 sum += len; in befs_find_brun_indirect()
|
/fs/xfs/ |
D | xfs_rtalloc.c | 37 xfs_suminfo_t *sum) /* out: summary info for this block */ in xfs_rtget_summary() argument 39 return xfs_rtmodify_summary_int(mp, tp, log, bbno, 0, rbpp, rsb, sum); in xfs_rtget_summary() 59 xfs_suminfo_t sum; /* summary data */ in xfs_rtany_summary() local 72 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary() 79 if (sum) { in xfs_rtany_summary() 110 xfs_suminfo_t sum; /* summary data */ in xfs_rtcopy_summary() local 119 &sumbno, &sum); in xfs_rtcopy_summary() 122 if (sum == 0) in xfs_rtcopy_summary() 124 error = xfs_rtmodify_summary(omp, tp, log, bbno, -sum, in xfs_rtcopy_summary() 128 error = xfs_rtmodify_summary(nmp, tp, log, bbno, sum, in xfs_rtcopy_summary() [all …]
|
D | xfs_rtalloc.h | 119 xfs_suminfo_t *sum);
|
/fs/f2fs/ |
D | hash.c | 28 __u32 sum = 0; in TEA_transform() local 34 sum += DELTA; in TEA_transform() 35 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b); in TEA_transform() 36 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); in TEA_transform()
|
D | gc.c | 290 unsigned int end = offset + len, sum = 0; in count_bits() local 294 ++sum; in count_bits() 296 return sum; in count_bits() 507 struct f2fs_summary *sum, unsigned int segno, int gc_type) in gc_node_segment() argument 519 entry = sum; in gc_node_segment() 610 static bool is_alive(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, in is_alive() argument 618 nid = le32_to_cpu(sum->nid); in is_alive() 619 ofs_in_node = le16_to_cpu(sum->ofs_in_node); in is_alive() 630 if (sum->version != dni->version) { in is_alive() 760 struct f2fs_summary sum; in move_data_block() local [all …]
|
D | recovery.c | 404 struct f2fs_summary sum; in check_index_in_prev_nodes() local 421 sum = curseg->sum_blk->entries[blkoff]; in check_index_in_prev_nodes() 430 sum = sum_node->entries[blkoff]; in check_index_in_prev_nodes() 434 nid = le32_to_cpu(sum.nid); in check_index_in_prev_nodes() 440 tdn.ofs_in_node = le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes() 443 tdn.ofs_in_node = le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes() 474 le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes()
|
D | segment.c | 2272 struct f2fs_summary *sum) in __add_sum_entry() argument 2277 memcpy(addr, sum, sizeof(struct f2fs_summary)); in __add_sum_entry() 3084 struct f2fs_summary *sum, int type, in f2fs_allocate_data_block() argument 3117 __add_sum_entry(sbi, type, sum); in f2fs_allocate_data_block() 3193 static void do_write_page(struct f2fs_summary *sum, struct f2fs_io_info *fio) in do_write_page() argument 3202 &fio->new_blkaddr, sum, type, fio, true); in do_write_page() 3249 struct f2fs_summary sum; in f2fs_do_write_node_page() local 3251 set_summary(&sum, nid, 0, 0); in f2fs_do_write_node_page() 3252 do_write_page(&sum, fio); in f2fs_do_write_node_page() 3261 struct f2fs_summary sum; in f2fs_outplace_write_data() local [all …]
|
D | segment.h | 783 static inline void set_summary(struct f2fs_summary *sum, nid_t nid, in set_summary() argument 786 sum->nid = cpu_to_le32(nid); in set_summary() 787 sum->ofs_in_node = cpu_to_le16(ofs_in_node); in set_summary() 788 sum->version = version; in set_summary()
|
/fs/proc/ |
D | stat.c | 112 u64 sum = 0; in show_stat() local 135 sum += kstat_cpu_irqs_sum(i); in show_stat() 136 sum += arch_irq_stat_cpu(i); in show_stat() 145 sum += arch_irq_stat(); in show_stat() 186 seq_put_decimal_ull(p, "intr ", (unsigned long long)sum); in show_stat()
|
/fs/reiserfs/ |
D | hashes.c | 26 u32 sum = 0; \ 35 sum += DELTA; \ 36 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b); \ 37 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); \
|
/fs/omfs/ |
D | bitmap.c | 11 unsigned long sum = 0; in omfs_count_free() local 16 sum += nbits - bitmap_weight(sbi->s_imap[i], nbits); in omfs_count_free() 18 return sum; in omfs_count_free()
|
/fs/ext4/ |
D | hash.c | 18 __u32 sum = 0; in TEA_transform() local 24 sum += DELTA; in TEA_transform() 25 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b); in TEA_transform() 26 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); in TEA_transform()
|
/fs/btrfs/ |
D | ordered-data.c | 280 struct btrfs_ordered_sum *sum) in btrfs_add_ordered_sum() argument 286 list_add_tail(&sum->list, &entry->list); in btrfs_add_ordered_sum() 435 struct btrfs_ordered_sum *sum; in btrfs_put_ordered_extent() local 448 sum = list_entry(cur, struct btrfs_ordered_sum, list); in btrfs_put_ordered_extent() 449 list_del(&sum->list); in btrfs_put_ordered_extent() 450 kvfree(sum); in btrfs_put_ordered_extent() 928 u8 *sum, int len) in btrfs_find_ordered_sum() argument 953 memcpy(sum + index, ordered_sum->sums + i * csum_size, in btrfs_find_ordered_sum()
|
D | ordered-data.h | 171 struct btrfs_ordered_sum *sum); 186 u8 *sum, int len);
|
D | scrub.c | 530 struct btrfs_ordered_sum *sum; in scrub_free_csums() local 531 sum = list_first_entry(&sctx->csum_list, in scrub_free_csums() 533 list_del(&sum->list); in scrub_free_csums() 534 kfree(sum); in scrub_free_csums() 2437 struct btrfs_ordered_sum *sum = NULL; in scrub_find_csum() local 2442 sum = list_first_entry(&sctx->csum_list, in scrub_find_csum() 2444 if (sum->bytenr > logical) in scrub_find_csum() 2446 if (sum->bytenr + sum->len > logical) in scrub_find_csum() 2450 list_del(&sum->list); in scrub_find_csum() 2451 kfree(sum); in scrub_find_csum() [all …]
|
/fs/minix/ |
D | bitmap.c | 29 __u32 sum = 0; in count_free() local 36 sum += 16 - hweight16(*p++); in count_free() 39 return sum; in count_free()
|
/fs/affs/ |
D | amigaffs.c | 342 u32 sum; in affs_checksum_block() local 345 sum = 0; in affs_checksum_block() 347 sum += be32_to_cpu(*ptr++); in affs_checksum_block() 348 return sum; in affs_checksum_block()
|
/fs/romfs/ |
D | super.c | 445 __u32 sum; in romfs_checksum() local 447 sum = 0; in romfs_checksum() 450 sum += be32_to_cpu(*ptr++); in romfs_checksum() 453 return sum; in romfs_checksum()
|
/fs/ |
D | dcache.c | 143 long sum = 0; in get_nr_dentry() local 145 sum += per_cpu(nr_dentry, i); in get_nr_dentry() 146 return sum < 0 ? 0 : sum; in get_nr_dentry() 152 long sum = 0; in get_nr_dentry_unused() local 154 sum += per_cpu(nr_dentry_unused, i); in get_nr_dentry_unused() 155 return sum < 0 ? 0 : sum; in get_nr_dentry_unused() 161 long sum = 0; in get_nr_dentry_negative() local 164 sum += per_cpu(nr_dentry_negative, i); in get_nr_dentry_negative() 165 return sum < 0 ? 0 : sum; in get_nr_dentry_negative()
|
D | inode.c | 83 long sum = 0; in get_nr_inodes() local 85 sum += per_cpu(nr_inodes, i); in get_nr_inodes() 86 return sum < 0 ? 0 : sum; in get_nr_inodes() 92 long sum = 0; in get_nr_inodes_unused() local 94 sum += per_cpu(nr_unused, i); in get_nr_inodes_unused() 95 return sum < 0 ? 0 : sum; in get_nr_inodes_unused()
|
D | namespace.c | 1980 unsigned int mounts = 0, old, pending, sum; in count_mounts() local 1988 sum = old + pending; in count_mounts() 1989 if ((old > sum) || in count_mounts() 1990 (pending > sum) || in count_mounts() 1991 (max < sum) || in count_mounts() 1992 (mounts > (max - sum))) in count_mounts()
|
/fs/ubifs/ |
D | find.c | 224 int err = 0, sum, exclude_index = pick_free == 2 ? 1 : 0; in ubifs_find_dirty_leb() local 277 sum = idx_lp->free + idx_lp->dirty; in ubifs_find_dirty_leb() 288 if (sum < min_space || sum < c->half_leb_size) in ubifs_find_dirty_leb()
|
/fs/xfs/libxfs/ |
D | xfs_rtbitmap.c | 452 xfs_suminfo_t *sum) /* out: summary info for this block */ in xfs_rtmodify_summary_int() argument 508 if (sum) in xfs_rtmodify_summary_int() 509 *sum = *sp; in xfs_rtmodify_summary_int()
|