Lines Matching refs:j_sb

287 	struct jfs_superblock *j_sb;  in chkSuper()  local
297 j_sb = (struct jfs_superblock *)bh->b_data; in chkSuper()
303 if (strncmp(j_sb->s_magic, JFS_MAGIC, 4) || in chkSuper()
304 le32_to_cpu(j_sb->s_version) > JFS_VERSION) { in chkSuper()
309 bsize = le32_to_cpu(j_sb->s_bsize); in chkSuper()
317 le32_to_cpu(j_sb->s_flag), le32_to_cpu(j_sb->s_state), in chkSuper()
318 (unsigned long long) le64_to_cpu(j_sb->s_size)); in chkSuper()
321 if ((j_sb->s_flag & cpu_to_le32(JFS_BAD_SAIT)) != in chkSuper()
324 AIM_bytesize = lengthPXD(&(j_sb->s_aim2)) * bsize; in chkSuper()
326 AIT_bytesize = lengthPXD(&(j_sb->s_ait2)) * bsize; in chkSuper()
327 AIM_byte_addr = addressPXD(&(j_sb->s_aim2)) * bsize; in chkSuper()
328 AIT_byte_addr = addressPXD(&(j_sb->s_ait2)) * bsize; in chkSuper()
330 fsckwsp_addr = addressPXD(&(j_sb->s_fsckpxd)) * bsize; in chkSuper()
336 j_sb->s_flag |= cpu_to_le32(JFS_BAD_SAIT); in chkSuper()
339 if ((j_sb->s_flag & cpu_to_le32(JFS_GROUPCOMMIT)) != in chkSuper()
341 j_sb->s_flag |= cpu_to_le32(JFS_GROUPCOMMIT); in chkSuper()
344 if (j_sb->s_state != cpu_to_le32(FM_CLEAN) && in chkSuper()
351 sbi->state = le32_to_cpu(j_sb->s_state); in chkSuper()
352 sbi->mntflag = le32_to_cpu(j_sb->s_flag); in chkSuper()
359 sbi->l2bsize = le16_to_cpu(j_sb->s_l2bsize); in chkSuper()
363 j_sb->pad != 0 || in chkSuper()
364 le32_to_cpu(j_sb->s_state) > FM_STATE_MAX) { in chkSuper()
378 sbi->logpxd = j_sb->s_logpxd; in chkSuper()
380 sbi->logdev = new_decode_dev(le32_to_cpu(j_sb->s_logdev)); in chkSuper()
381 uuid_copy(&sbi->uuid, &j_sb->s_uuid); in chkSuper()
382 uuid_copy(&sbi->loguuid, &j_sb->s_loguuid); in chkSuper()
384 sbi->fsckpxd = j_sb->s_fsckpxd; in chkSuper()
385 sbi->ait2 = j_sb->s_ait2; in chkSuper()
400 struct jfs_superblock *j_sb; in updateSuper() local
422 j_sb = (struct jfs_superblock *)bh->b_data; in updateSuper()
424 j_sb->s_state = cpu_to_le32(state); in updateSuper()
429 j_sb->s_logdev = cpu_to_le32(new_encode_dev(sbi->log->bdev->bd_dev)); in updateSuper()
430 j_sb->s_logserial = cpu_to_le32(sbi->log->serial); in updateSuper()
436 if (j_sb->s_flag & cpu_to_le32(JFS_DASD_ENABLED)) in updateSuper()
437 j_sb->s_flag |= cpu_to_le32(JFS_DASD_PRIME); in updateSuper()