Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 25 of 35) sorted by relevance

12

/fs/nilfs2/
Drecovery.c105 struct buffer_head *bhs, u32 *sum, in nilfs_compute_checksum() argument
131 *sum = crc; in nilfs_compute_checksum()
194 struct nilfs_segment_summary **sum) in nilfs_read_log_header() argument
200 *sum = (struct nilfs_segment_summary *)bh_sum->b_data; in nilfs_read_log_header()
213 struct nilfs_segment_summary *sum) in nilfs_validate_log() argument
220 if (le32_to_cpu(sum->ss_magic) != NILFS_SEGSUM_MAGIC) in nilfs_validate_log()
224 if (le64_to_cpu(sum->ss_seq) != seg_seq) in nilfs_validate_log()
227 nblock = le32_to_cpu(sum->ss_nblocks); in nilfs_validate_log()
234 if (nilfs_compute_checksum(nilfs, bh_sum, &crc, sizeof(sum->ss_datasum), in nilfs_validate_log()
240 if (crc != le32_to_cpu(sum->ss_datasum)) in nilfs_validate_log()
[all …]
Dthe_nilfs.c438 static unsigned char sum[4]; in nilfs_valid_sb() local
450 crc = crc32_le(crc, sum, 4); in nilfs_valid_sb()
/fs/befs/
Ddatastream.c251 befs_blocknr_t sum; in befs_find_brun_direct() local
263 for (i = 0, sum = 0; i < BEFS_NUM_DIRECT_BLOCKS; in befs_find_brun_direct()
264 sum += array[i].len, i++) { in befs_find_brun_direct()
265 if (blockno >= sum && blockno < sum + (array[i].len)) { in befs_find_brun_direct()
266 int offset = blockno - sum; in befs_find_brun_direct()
311 befs_blocknr_t sum = 0; in befs_find_brun_indirect() local
341 if (search_blk >= sum && search_blk < sum + len) { in befs_find_brun_indirect()
342 int offset = search_blk - sum; in befs_find_brun_indirect()
358 sum += len; in befs_find_brun_indirect()
/fs/f2fs/
Dgc.c286 unsigned int end = offset + len, sum = 0; in count_bits() local
290 ++sum; in count_bits()
292 return sum; in count_bits()
472 struct f2fs_summary *sum, unsigned int segno, int gc_type) in gc_node_segment() argument
482 entry = sum; in gc_node_segment()
559 static bool is_alive(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, in is_alive() argument
567 nid = le32_to_cpu(sum->nid); in is_alive()
568 ofs_in_node = le16_to_cpu(sum->ofs_in_node); in is_alive()
576 if (sum->version != dni->version) { in is_alive()
610 struct f2fs_summary sum; in move_data_block() local
[all …]
Dhash.c30 __u32 sum = 0; in TEA_transform() local
36 sum += DELTA; in TEA_transform()
37 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b); in TEA_transform()
38 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); in TEA_transform()
Drecovery.c300 struct f2fs_summary sum; in check_index_in_prev_nodes() local
317 sum = curseg->sum_blk->entries[blkoff]; in check_index_in_prev_nodes()
324 sum = sum_node->entries[blkoff]; in check_index_in_prev_nodes()
328 nid = le32_to_cpu(sum.nid); in check_index_in_prev_nodes()
334 tdn.ofs_in_node = le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes()
337 tdn.ofs_in_node = le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes()
361 bidx = start_bidx_of_node(offset, inode) + le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes()
Dsegment.c2026 struct f2fs_summary *sum) in __add_sum_entry() argument
2031 memcpy(addr, sum, sizeof(struct f2fs_summary)); in __add_sum_entry()
2606 struct f2fs_summary *sum, int type, in allocate_data_block() argument
2626 __add_sum_entry(sbi, type, sum); in allocate_data_block()
2696 static void do_write_page(struct f2fs_summary *sum, struct f2fs_io_info *fio) in do_write_page() argument
2703 &fio->new_blkaddr, sum, type, fio, true); in do_write_page()
2741 struct f2fs_summary sum; in write_node_page() local
2743 set_summary(&sum, nid, 0, 0); in write_node_page()
2744 do_write_page(&sum, fio); in write_node_page()
2752 struct f2fs_summary sum; in write_data_page() local
[all …]
Dsegment.h738 static inline void set_summary(struct f2fs_summary *sum, nid_t nid, in set_summary() argument
741 sum->nid = cpu_to_le32(nid); in set_summary()
742 sum->ofs_in_node = cpu_to_le16(ofs_in_node); in set_summary()
743 sum->version = version; in set_summary()
/fs/xfs/
Dxfs_rtalloc.c57 xfs_suminfo_t *sum) /* out: summary info for this block */ in xfs_rtget_summary() argument
59 return xfs_rtmodify_summary_int(mp, tp, log, bbno, 0, rbpp, rsb, sum); in xfs_rtget_summary()
79 xfs_suminfo_t sum; /* summary data */ in xfs_rtany_summary() local
88 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary()
95 if (sum) { in xfs_rtany_summary()
122 xfs_suminfo_t sum; /* summary data */ in xfs_rtcopy_summary() local
131 &sumbno, &sum); in xfs_rtcopy_summary()
134 if (sum == 0) in xfs_rtcopy_summary()
136 error = xfs_rtmodify_summary(omp, tp, log, bbno, -sum, in xfs_rtcopy_summary()
140 error = xfs_rtmodify_summary(nmp, tp, log, bbno, sum, in xfs_rtcopy_summary()
[all …]
Dxfs_rtalloc.h117 xfs_suminfo_t *sum);
/fs/proc/
Dstat.c86 u64 sum = 0; in show_stat() local
108 sum += kstat_cpu_irqs_sum(i); in show_stat()
109 sum += arch_irq_stat_cpu(i); in show_stat()
118 sum += arch_irq_stat(); in show_stat()
158 seq_printf(p, "intr %llu", (unsigned long long)sum); in show_stat()
/fs/ext3/
Dhash.c19 __u32 sum = 0; in TEA_transform() local
25 sum += DELTA; in TEA_transform()
26 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b); in TEA_transform()
27 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); in TEA_transform()
/fs/ext4/
Dhash.c21 __u32 sum = 0; in TEA_transform() local
27 sum += DELTA; in TEA_transform()
28 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b); in TEA_transform()
29 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); in TEA_transform()
/fs/reiserfs/
Dhashes.c26 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/btrfs/
Dordered-data.c282 struct btrfs_ordered_sum *sum) in btrfs_add_ordered_sum() argument
288 list_add_tail(&sum->list, &entry->list); in btrfs_add_ordered_sum()
289 WARN_ON(entry->csum_bytes_left < sum->len); in btrfs_add_ordered_sum()
290 entry->csum_bytes_left -= sum->len; in btrfs_add_ordered_sum()
533 struct btrfs_ordered_sum *sum; in btrfs_put_ordered_extent() local
542 sum = list_entry(cur, struct btrfs_ordered_sum, list); in btrfs_put_ordered_extent()
543 list_del(&sum->list); in btrfs_put_ordered_extent()
544 kfree(sum); in btrfs_put_ordered_extent()
1001 u32 *sum, int len) in btrfs_find_ordered_sum() argument
1024 memcpy(sum + index, ordered_sum->sums + i, in btrfs_find_ordered_sum()
Dordered-data.h183 struct btrfs_ordered_sum *sum);
197 u32 *sum, int len);
Dscrub.c346 struct btrfs_ordered_sum *sum; in scrub_free_csums() local
347 sum = list_first_entry(&sctx->csum_list, in scrub_free_csums()
349 list_del(&sum->list); in scrub_free_csums()
350 kfree(sum); in scrub_free_csums()
2145 struct btrfs_ordered_sum *sum = NULL; in scrub_find_csum() local
2150 sum = list_first_entry(&sctx->csum_list, in scrub_find_csum()
2152 if (sum->bytenr > logical) in scrub_find_csum()
2154 if (sum->bytenr + sum->len > logical) in scrub_find_csum()
2158 list_del(&sum->list); in scrub_find_csum()
2159 kfree(sum); in scrub_find_csum()
[all …]
/fs/omfs/
Dbitmap.c10 unsigned long sum = 0; in omfs_count_free() local
15 sum += nbits - bitmap_weight(sbi->s_imap[i], nbits); in omfs_count_free()
17 return sum; in omfs_count_free()
/fs/minix/
Dbitmap.c28 __u32 sum = 0; in count_free() local
35 sum += 16 - hweight16(*p++); in count_free()
38 return sum; in count_free()
/fs/affs/
Damigaffs.c341 u32 sum; in affs_checksum_block() local
344 sum = 0; in affs_checksum_block()
346 sum += be32_to_cpu(*ptr++); in affs_checksum_block()
347 return sum; in affs_checksum_block()
/fs/romfs/
Dsuper.c457 __u32 sum; in romfs_checksum() local
459 sum = 0; in romfs_checksum()
462 sum += be32_to_cpu(*ptr++); in romfs_checksum()
465 return sum; in romfs_checksum()
/fs/
Dinode.c83 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()
Ddcache.c137 long sum = 0; in get_nr_dentry() local
139 sum += per_cpu(nr_dentry, i); in get_nr_dentry()
140 return sum < 0 ? 0 : sum; in get_nr_dentry()
146 long sum = 0; in get_nr_dentry_unused() local
148 sum += per_cpu(nr_dentry_unused, i); in get_nr_dentry_unused()
149 return sum < 0 ? 0 : sum; in get_nr_dentry_unused()
/fs/ubifs/
Dfind.c236 int err = 0, sum, exclude_index = pick_free == 2 ? 1 : 0; in ubifs_find_dirty_leb() local
289 sum = idx_lp->free + idx_lp->dirty; in ubifs_find_dirty_leb()
300 if (sum < min_space || sum < c->half_leb_size) in ubifs_find_dirty_leb()
/fs/xfs/libxfs/
Dxfs_rtbitmap.c444 xfs_suminfo_t *sum) /* out: summary info for this block */ in xfs_rtmodify_summary_int() argument
494 if (sum) in xfs_rtmodify_summary_int()
495 *sum = *sp; in xfs_rtmodify_summary_int()

12