• Home
  • Raw
  • Download

Lines Matching refs:sum

105 				  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()
317 struct nilfs_segment_summary *sum, in nilfs_scan_dsync_log() argument
327 nfinfo = le32_to_cpu(sum->ss_nfinfo); in nilfs_scan_dsync_log()
331 sumbytes = le32_to_cpu(sum->ss_sumbytes); in nilfs_scan_dsync_log()
337 offset = le16_to_cpu(sum->ss_bytes); in nilfs_scan_dsync_log()
585 struct nilfs_segment_summary *sum; in nilfs_do_roll_forward() local
608 bh_sum = nilfs_read_log_header(nilfs, pseg_start, &sum); in nilfs_do_roll_forward()
614 ret = nilfs_validate_log(nilfs, seg_seq, bh_sum, sum); in nilfs_do_roll_forward()
623 flags = le16_to_cpu(sum->ss_flags); in nilfs_do_roll_forward()
629 le64_to_cpu(sum->ss_next)); in nilfs_do_roll_forward()
631 nilfs->ns_ctime = le64_to_cpu(sum->ss_create); in nilfs_do_roll_forward()
646 err = nilfs_scan_dsync_log(nilfs, pseg_start, sum, in nilfs_do_roll_forward()
664 pseg_start += le32_to_cpu(sum->ss_nblocks); in nilfs_do_roll_forward()
817 struct nilfs_segment_summary *sum; in nilfs_search_super_root() local
846 bh_sum = nilfs_read_log_header(nilfs, pseg_start, &sum); in nilfs_search_super_root()
850 ret = nilfs_validate_log(nilfs, seg_seq, bh_sum, sum); in nilfs_search_super_root()
857 nblocks = le32_to_cpu(sum->ss_nblocks); in nilfs_search_super_root()
869 le64_to_cpu(sum->ss_next)); in nilfs_search_super_root()
873 flags = le16_to_cpu(sum->ss_flags); in nilfs_search_super_root()
909 nilfs->ns_ctime = le64_to_cpu(sum->ss_create); in nilfs_search_super_root()