Home | History | Annotate | Download | only in debugfs

Lines Matching refs:jsb

50 					   journal_superblock_t *jsb)
55 return jsb->s_checksum_type == JBD2_CRC32C_CHKSUM;
58 static __u32 ext2fs_journal_sb_csum(journal_superblock_t *jsb)
62 old_crc = jsb->s_checksum;
63 jsb->s_checksum = 0;
64 crc = ext2fs_crc32c_le(~0, (unsigned char *)jsb,
66 jsb->s_checksum = old_crc;
72 journal_superblock_t *jsb)
79 provided = ext2fs_be32_to_cpu(jsb->s_checksum);
80 calculated = ext2fs_journal_sb_csum(jsb);
86 journal_superblock_t *jsb)
93 crc = ext2fs_journal_sb_csum(jsb);
94 jsb->s_checksum = ext2fs_cpu_to_be32(crc);
548 journal_superblock_t *jsb;
555 jsb = journal->j_superblock;
557 if (jsb->s_header.h_magic != htonl(JFS_MAGIC_NUMBER))
560 switch (ntohl(jsb->s_header.h_blocktype)) {
563 if (jsb->s_feature_compat ||
564 jsb->s_feature_incompat ||
565 jsb->s_feature_ro_compat ||
566 jsb->s_nr_users)
572 if (ntohl(jsb->s_nr_users) > 1 &&
575 if (ntohl(jsb->s_nr_users) > 1)
609 if (!ext2fs_journal_verify_csum_type(journal, jsb) ||
610 !ext2fs_journal_sb_csum_verify(journal, jsb))
614 journal->j_csum_seed = jbd2_chksum(journal, ~0, jsb->s_uuid,
615 sizeof(jsb->s_uuid));
620 if (jsb->s_blocksize != htonl(journal->j_blocksize))
623 if (ntohl(jsb->s_maxlen) < journal->j_maxlen)
624 journal->j_maxlen = ntohl(jsb->s_maxlen);
625 else if (ntohl(jsb->s_maxlen) > journal->j_maxlen)
628 journal->j_tail_sequence = ntohl(jsb->s_sequence);
630 journal->j_tail = ntohl(jsb->s_start);
631 journal->j_first = ntohl(jsb->s_first);
632 journal->j_last = ntohl(jsb->s_maxlen);
640 journal_superblock_t *jsb;
645 jsb = journal->j_superblock;
646 jsb->s_sequence = htonl(journal->j_tail_sequence);
648 jsb->s_start = 0; /* this marks the journal as empty */
649 ext2fs_journal_sb_csum_set(journal, jsb);