/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 …]
|
/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/ceph/ |
D | debugfs.c | 149 s64 total, sum, avg, min, max, sq; in metric_show() local 151 sum = percpu_counter_sum(&m->total_inodes); in metric_show() 155 atomic64_read(&m->opened_files), sum); in metric_show() 157 atomic64_read(&m->total_caps), sum); in metric_show() 159 percpu_counter_sum(&m->opened_inodes), sum); in metric_show() 167 sum = m->read_latency_sum; in metric_show() 168 avg = total > 0 ? DIV64_U64_ROUND_CLOSEST(sum, total) : 0; in metric_show() 177 sum = m->write_latency_sum; in metric_show() 178 avg = total > 0 ? DIV64_U64_ROUND_CLOSEST(sum, total) : 0; in metric_show() 187 sum = m->metadata_latency_sum; in metric_show() [all …]
|
D | metric.c | 23 s64 sum; in ceph_mdsc_send_metrics() local 56 sum = m->read_latency_sum; in ceph_mdsc_send_metrics() 57 jiffies_to_timespec64(sum, &ts); in ceph_mdsc_send_metrics() 68 sum = m->write_latency_sum; in ceph_mdsc_send_metrics() 69 jiffies_to_timespec64(sum, &ts); in ceph_mdsc_send_metrics() 80 sum = m->metadata_latency_sum; in ceph_mdsc_send_metrics() 81 jiffies_to_timespec64(sum, &ts); in ceph_mdsc_send_metrics()
|
/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 | 27 __u32 sum = 0; in TEA_transform() local 33 sum += DELTA; in TEA_transform() 34 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b); in TEA_transform() 35 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); in TEA_transform()
|
D | gc.c | 360 unsigned int end = offset + len, sum = 0; in count_bits() local 364 ++sum; in count_bits() 366 return sum; in count_bits() 945 struct f2fs_summary *sum, unsigned int segno, int gc_type) in gc_node_segment() argument 958 entry = sum; in gc_node_segment() 1051 static bool is_alive(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, in is_alive() argument 1059 nid = le32_to_cpu(sum->nid); in is_alive() 1060 ofs_in_node = le16_to_cpu(sum->ofs_in_node); in is_alive() 1071 if (sum->version != dni->version) { in is_alive() 1225 struct f2fs_summary sum; in move_data_block() local [all …]
|
D | recovery.c | 449 struct f2fs_summary sum; in check_index_in_prev_nodes() local 467 sum = curseg->sum_blk->entries[blkoff]; in check_index_in_prev_nodes() 476 sum = sum_node->entries[blkoff]; in check_index_in_prev_nodes() 480 nid = le32_to_cpu(sum.nid); in check_index_in_prev_nodes() 481 ofs_in_node = le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes() 529 le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes()
|
D | segment.c | 2379 struct f2fs_summary *sum) in __add_sum_entry() argument 2385 memcpy(addr, sum, sizeof(struct f2fs_summary)); in __add_sum_entry() 3385 struct f2fs_summary *sum, int type, in f2fs_allocate_data_block() argument 3416 __add_sum_entry(sbi, type, sum); in f2fs_allocate_data_block() 3504 static void do_write_page(struct f2fs_summary *sum, struct f2fs_io_info *fio) in do_write_page() argument 3513 &fio->new_blkaddr, sum, type, fio); in do_write_page() 3562 struct f2fs_summary sum; in f2fs_do_write_node_page() local 3564 set_summary(&sum, nid, 0, 0); in f2fs_do_write_node_page() 3565 do_write_page(&sum, fio); in f2fs_do_write_node_page() 3574 struct f2fs_summary sum; in f2fs_outplace_write_data() local [all …]
|
D | segment.h | 841 static inline void set_summary(struct f2fs_summary *sum, nid_t nid, in set_summary() argument 844 sum->nid = cpu_to_le32(nid); in set_summary() 845 sum->ofs_in_node = cpu_to_le16(ofs_in_node); in set_summary() 846 sum->version = version; in set_summary()
|
/fs/proc/ |
D | stat.c | 112 u64 sum = 0; in show_stat() local 138 sum += kstat_cpu_irqs_sum(i); in show_stat() 139 sum += arch_irq_stat_cpu(i); in show_stat() 148 sum += arch_irq_stat(); in show_stat() 192 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 | 289 struct btrfs_ordered_sum *sum) in btrfs_add_ordered_sum() argument 295 list_add_tail(&sum->list, &entry->list); in btrfs_add_ordered_sum() 442 struct btrfs_ordered_sum *sum; in btrfs_put_ordered_extent() local 454 sum = list_entry(cur, struct btrfs_ordered_sum, list); in btrfs_put_ordered_extent() 455 list_del(&sum->list); in btrfs_put_ordered_extent() 456 kvfree(sum); in btrfs_put_ordered_extent() 863 u64 disk_bytenr, u8 *sum, int len) in btrfs_find_ordered_sum() argument 887 memcpy(sum + index, ordered_sum->sums + i * csum_size, in btrfs_find_ordered_sum()
|
D | ordered-data.h | 174 struct btrfs_ordered_sum *sum); 188 u64 disk_bytenr, 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() 2369 struct btrfs_ordered_sum *sum = NULL; in scrub_find_csum() local 2374 sum = list_first_entry(&sctx->csum_list, in scrub_find_csum() 2376 if (sum->bytenr > logical) in scrub_find_csum() 2378 if (sum->bytenr + sum->len > logical) in scrub_find_csum() 2382 list_del(&sum->list); in scrub_find_csum() 2383 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 | 84 long sum = 0; in get_nr_inodes() local 86 sum += per_cpu(nr_inodes, i); in get_nr_inodes() 87 return sum < 0 ? 0 : sum; in get_nr_inodes() 93 long sum = 0; in get_nr_inodes_unused() local 95 sum += per_cpu(nr_unused, i); in get_nr_inodes_unused() 96 return sum < 0 ? 0 : sum; in get_nr_inodes_unused()
|
/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()
|