Lines Matching refs:j_sb
291 struct jfs_superblock *j_sb; in chkSuper() local
301 j_sb = (struct jfs_superblock *)bh->b_data; in chkSuper()
307 if (strncmp(j_sb->s_magic, JFS_MAGIC, 4) || in chkSuper()
308 le32_to_cpu(j_sb->s_version) > JFS_VERSION) { in chkSuper()
313 bsize = le32_to_cpu(j_sb->s_bsize); in chkSuper()
321 le32_to_cpu(j_sb->s_flag), le32_to_cpu(j_sb->s_state), in chkSuper()
322 (unsigned long long) le64_to_cpu(j_sb->s_size)); in chkSuper()
325 if ((j_sb->s_flag & cpu_to_le32(JFS_BAD_SAIT)) != in chkSuper()
328 AIM_bytesize = lengthPXD(&(j_sb->s_aim2)) * bsize; in chkSuper()
330 AIT_bytesize = lengthPXD(&(j_sb->s_ait2)) * bsize; in chkSuper()
331 AIM_byte_addr = addressPXD(&(j_sb->s_aim2)) * bsize; in chkSuper()
332 AIT_byte_addr = addressPXD(&(j_sb->s_ait2)) * bsize; in chkSuper()
334 fsckwsp_addr = addressPXD(&(j_sb->s_fsckpxd)) * bsize; in chkSuper()
340 j_sb->s_flag |= cpu_to_le32(JFS_BAD_SAIT); in chkSuper()
343 if ((j_sb->s_flag & cpu_to_le32(JFS_GROUPCOMMIT)) != in chkSuper()
345 j_sb->s_flag |= cpu_to_le32(JFS_GROUPCOMMIT); in chkSuper()
348 if (j_sb->s_state != cpu_to_le32(FM_CLEAN) && in chkSuper()
355 sbi->state = le32_to_cpu(j_sb->s_state); in chkSuper()
356 sbi->mntflag = le32_to_cpu(j_sb->s_flag); in chkSuper()
363 sbi->l2bsize = le16_to_cpu(j_sb->s_l2bsize); in chkSuper()
367 j_sb->pad != 0 || in chkSuper()
368 le32_to_cpu(j_sb->s_state) > FM_STATE_MAX) { in chkSuper()
382 sbi->logpxd = j_sb->s_logpxd; in chkSuper()
384 sbi->logdev = new_decode_dev(le32_to_cpu(j_sb->s_logdev)); in chkSuper()
385 uuid_copy(&sbi->uuid, &j_sb->s_uuid); in chkSuper()
386 uuid_copy(&sbi->loguuid, &j_sb->s_loguuid); in chkSuper()
388 sbi->fsckpxd = j_sb->s_fsckpxd; in chkSuper()
389 sbi->ait2 = j_sb->s_ait2; in chkSuper()
404 struct jfs_superblock *j_sb; in updateSuper() local
426 j_sb = (struct jfs_superblock *)bh->b_data; in updateSuper()
428 j_sb->s_state = cpu_to_le32(state); in updateSuper()
433 j_sb->s_logdev = cpu_to_le32(new_encode_dev(sbi->log->bdev->bd_dev)); in updateSuper()
434 j_sb->s_logserial = cpu_to_le32(sbi->log->serial); in updateSuper()
440 if (j_sb->s_flag & cpu_to_le32(JFS_DASD_ENABLED)) in updateSuper()
441 j_sb->s_flag |= cpu_to_le32(JFS_DASD_PRIME); in updateSuper()