Home
last modified time | relevance | path

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

12

/fs/nilfs2/
Drecovery.c102 struct buffer_head *bhs, u32 *sum, in nilfs_compute_checksum() argument
128 *sum = crc; in nilfs_compute_checksum()
191 struct nilfs_segment_summary **sum) in nilfs_read_log_header() argument
197 *sum = (struct nilfs_segment_summary *)bh_sum->b_data; in nilfs_read_log_header()
210 struct nilfs_segment_summary *sum) in nilfs_validate_log() argument
217 if (le32_to_cpu(sum->ss_magic) != NILFS_SEGSUM_MAGIC) in nilfs_validate_log()
221 if (le64_to_cpu(sum->ss_seq) != seg_seq) in nilfs_validate_log()
224 nblock = le32_to_cpu(sum->ss_nblocks); in nilfs_validate_log()
231 if (nilfs_compute_checksum(nilfs, bh_sum, &crc, sizeof(sum->ss_datasum), in nilfs_validate_log()
237 if (crc != le32_to_cpu(sum->ss_datasum)) in nilfs_validate_log()
[all …]
Dthe_nilfs.c442 static unsigned char sum[4]; in nilfs_valid_sb() local
454 crc = crc32_le(crc, sum, 4); in nilfs_valid_sb()
/fs/befs/
Ddatastream.c256 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/f2fs/
Dgc.c290 unsigned int end = offset + len, sum = 0; in count_bits() local
294 ++sum; in count_bits()
296 return sum; in count_bits()
494 struct f2fs_summary *sum, unsigned int segno, int gc_type) in gc_node_segment() argument
506 entry = sum; in gc_node_segment()
597 static bool is_alive(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, in is_alive() argument
605 nid = le32_to_cpu(sum->nid); in is_alive()
606 ofs_in_node = le16_to_cpu(sum->ofs_in_node); in is_alive()
617 if (sum->version != dni->version) { in is_alive()
726 struct f2fs_summary sum; in move_data_block() local
[all …]
Dhash.c27 __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()
Drecovery.c402 struct f2fs_summary sum; in check_index_in_prev_nodes() local
419 sum = curseg->sum_blk->entries[blkoff]; in check_index_in_prev_nodes()
428 sum = sum_node->entries[blkoff]; in check_index_in_prev_nodes()
432 nid = le32_to_cpu(sum.nid); in check_index_in_prev_nodes()
438 tdn.ofs_in_node = le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes()
441 tdn.ofs_in_node = le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes()
472 le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes()
Dsegment.c2244 struct f2fs_summary *sum) in __add_sum_entry() argument
2249 memcpy(addr, sum, sizeof(struct f2fs_summary)); in __add_sum_entry()
3017 struct f2fs_summary *sum, int type, in f2fs_allocate_data_block() argument
3037 __add_sum_entry(sbi, type, sum); in f2fs_allocate_data_block()
3108 static void do_write_page(struct f2fs_summary *sum, struct f2fs_io_info *fio) in do_write_page() argument
3117 &fio->new_blkaddr, sum, type, fio, true); in do_write_page()
3164 struct f2fs_summary sum; in f2fs_do_write_node_page() local
3166 set_summary(&sum, nid, 0, 0); in f2fs_do_write_node_page()
3167 do_write_page(&sum, fio); in f2fs_do_write_node_page()
3176 struct f2fs_summary sum; in f2fs_outplace_write_data() local
[all …]
Dsegment.h778 static inline void set_summary(struct f2fs_summary *sum, nid_t nid, in set_summary() argument
781 sum->nid = cpu_to_le32(nid); in set_summary()
782 sum->ofs_in_node = cpu_to_le16(ofs_in_node); in set_summary()
783 sum->version = version; in set_summary()
/fs/xfs/
Dxfs_rtalloc.c55 xfs_suminfo_t *sum) /* out: summary info for this block */ in xfs_rtget_summary() argument
57 return xfs_rtmodify_summary_int(mp, tp, log, bbno, 0, rbpp, rsb, sum); in xfs_rtget_summary()
77 xfs_suminfo_t sum; /* summary data */ in xfs_rtany_summary() local
86 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary()
93 if (sum) { in xfs_rtany_summary()
120 xfs_suminfo_t sum; /* summary data */ in xfs_rtcopy_summary() local
129 &sumbno, &sum); in xfs_rtcopy_summary()
132 if (sum == 0) in xfs_rtcopy_summary()
134 error = xfs_rtmodify_summary(omp, tp, log, bbno, -sum, in xfs_rtcopy_summary()
138 error = xfs_rtmodify_summary(nmp, tp, log, bbno, sum, in xfs_rtcopy_summary()
[all …]
Dxfs_rtalloc.h126 xfs_suminfo_t *sum);
/fs/proc/
Dstat.c87 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()
157 seq_put_decimal_ull(p, "intr ", (unsigned long long)sum); in show_stat()
/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/omfs/
Dbitmap.c11 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/
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/minix/
Dbitmap.c29 __u32 sum = 0; in count_free() local
36 sum += 16 - hweight16(*p++); in count_free()
39 return sum; in count_free()
/fs/btrfs/
Dordered-data.c280 struct btrfs_ordered_sum *sum) in btrfs_add_ordered_sum() argument
286 list_add_tail(&sum->list, &entry->list); in btrfs_add_ordered_sum()
564 struct btrfs_ordered_sum *sum; in btrfs_put_ordered_extent() local
577 sum = list_entry(cur, struct btrfs_ordered_sum, list); in btrfs_put_ordered_extent()
578 list_del(&sum->list); in btrfs_put_ordered_extent()
579 kfree(sum); in btrfs_put_ordered_extent()
1095 u32 *sum, int len) in btrfs_find_ordered_sum() argument
1118 memcpy(sum + index, ordered_sum->sums + i, in btrfs_find_ordered_sum()
Dordered-data.h184 struct btrfs_ordered_sum *sum);
202 u32 *sum, int len);
Dscrub.c628 struct btrfs_ordered_sum *sum; in scrub_free_csums() local
629 sum = list_first_entry(&sctx->csum_list, in scrub_free_csums()
631 list_del(&sum->list); in scrub_free_csums()
632 kfree(sum); in scrub_free_csums()
2711 struct btrfs_ordered_sum *sum = NULL; in scrub_find_csum() local
2716 sum = list_first_entry(&sctx->csum_list, in scrub_find_csum()
2718 if (sum->bytenr > logical) in scrub_find_csum()
2720 if (sum->bytenr + sum->len > logical) in scrub_find_csum()
2724 list_del(&sum->list); in scrub_find_csum()
2725 kfree(sum); in scrub_find_csum()
[all …]
/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.c471 __u32 sum; in romfs_checksum() local
473 sum = 0; in romfs_checksum()
476 sum += be32_to_cpu(*ptr++); in romfs_checksum()
479 return sum; in romfs_checksum()
/fs/
Dinode.c81 long sum = 0; in get_nr_inodes() local
83 sum += per_cpu(nr_inodes, i); in get_nr_inodes()
84 return sum < 0 ? 0 : sum; in get_nr_inodes()
90 long sum = 0; in get_nr_inodes_unused() local
92 sum += per_cpu(nr_unused, i); in get_nr_inodes_unused()
93 return sum < 0 ? 0 : sum; in get_nr_inodes_unused()
Ddcache.c153 long sum = 0; in get_nr_dentry() local
155 sum += per_cpu(nr_dentry, i); in get_nr_dentry()
156 return sum < 0 ? 0 : sum; in get_nr_dentry()
162 long sum = 0; in get_nr_dentry_unused() local
164 sum += per_cpu(nr_dentry_unused, i); in get_nr_dentry_unused()
165 return sum < 0 ? 0 : sum; in get_nr_dentry_unused()
Dnamespace.c1970 unsigned int mounts = 0, old, pending, sum; in count_mounts() local
1978 sum = old + pending; in count_mounts()
1979 if ((old > sum) || in count_mounts()
1980 (pending > sum) || in count_mounts()
1981 (max < sum) || in count_mounts()
1982 (mounts > (max - sum))) in count_mounts()
/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.c469 xfs_suminfo_t *sum) /* out: summary info for this block */ in xfs_rtmodify_summary_int() argument
519 if (sum) in xfs_rtmodify_summary_int()
520 *sum = *sp; in xfs_rtmodify_summary_int()

12