• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ocfs2/

Lines Matching refs:check

336 		mlog(ML_NOTICE, "Block check count has wrapped\n");
378 * This function generates check information for a block.
383 * take care of zeroing it before calculating the check information. If
413 * This function validates existing check information. Like _compute,
414 * the function will take care of zeroing bc before calculating check codes.
425 struct ocfs2_block_check check;
430 check.bc_crc32e = le32_to_cpu(bc->bc_crc32e);
431 check.bc_ecc = le16_to_cpu(bc->bc_ecc);
437 if (crc == check.bc_crc32e)
443 (unsigned int)check.bc_crc32e, (unsigned int)crc);
447 ocfs2_hamming_fix_block(data, blocksize, ecc ^ check.bc_ecc);
449 /* And check the crc32 again */
451 if (crc == check.bc_crc32e) {
457 (unsigned int)check.bc_crc32e, (unsigned int)crc);
462 bc->bc_crc32e = cpu_to_le32(check.bc_crc32e);
463 bc->bc_ecc = cpu_to_le16(check.bc_ecc);
469 * This function generates check information for a list of buffer_heads.
474 * take care of zeroing it before calculating the check information. If
518 * This function validates existing check information on a list of
520 * zeroing bc before calculating check codes. If bc is not a pointer
531 struct ocfs2_block_check check;
541 check.bc_crc32e = le32_to_cpu(bc->bc_crc32e);
542 check.bc_ecc = le16_to_cpu(bc->bc_ecc);
549 if (crc == check.bc_crc32e)
555 (unsigned int)check.bc_crc32e, (unsigned int)crc);
568 fix = ecc ^ check.bc_ecc;
578 /* And check the crc32 again */
581 if (crc == check.bc_crc32e) {
587 (unsigned int)check.bc_crc32e, (unsigned int)crc);
592 bc->bc_crc32e = cpu_to_le32(check.bc_crc32e);
593 bc->bc_ecc = cpu_to_le16(check.bc_ecc);
599 * These are the main API. They check the superblock flag before