Lines Matching defs:super
344 nilfs_check_superblock_crc(struct nilfs_super_block *super)
348 /* check super block magic */
349 if (nilfs_rw16(super->s_magic) != NILFS_SUPER_MAGIC)
353 super_crc = nilfs_rw32(super->s_sum);
356 super->s_sum = 0;
357 comp_crc = crc32_le(nilfs_rw32(super->s_crc_seed),
358 (uint8_t *) super, nilfs_rw16(super->s_bytes));
361 super->s_sum = nilfs_rw32(super_crc);
372 struct nilfs_super_block *super, tmp_super;
394 /* copy read-in super block at the offset */
395 super = &nilfsdev->super;
396 memcpy(super, (uint8_t *) bp->b_data + NILFS_SB_OFFSET_BYTES,
409 super = &nilfsdev->super2;
410 memcpy(super, (uint8_t *) bp->b_data + NILFS_SB_OFFSET_BYTES,
414 sb1ok = nilfs_check_superblock_crc(&nilfsdev->super);
417 last_cno1 = nilfs_rw64(nilfsdev->super.s_last_cno);
424 nilfsdev->super2 = nilfsdev->super; /* why preserve? */
425 nilfsdev->super = tmp_super;
473 printf("nilfs_mount: can't read in super block : %d\n", error);
478 log_blocksize = nilfs_rw32(nilfsdev->super.s_log_block_size);
484 nilfs_rw16(nilfsdev->super.s_dat_entry_size));
486 nilfs_rw16(nilfsdev->super.s_inode_size));
488 DPRINTF(VOLUMES, ("nilfs_mount: accepted super block\n"));
490 /* search for the super root and roll forward when needed */
493 nilfsdev->mount_state = nilfs_rw16(nilfsdev->super.s_state);
504 last_pseg = nilfs_rw64(nilfsdev->super.s_last_pseg); /*blknr */
505 last_cno = nilfs_rw64(nilfsdev->super.s_last_cno);
506 last_seq = nilfs_rw64(nilfsdev->super.s_last_seq);
514 DPRINTF(VOLUMES, ("nilfs_mount: accepted super root\n"));
590 last_cno = nilfs_rw64(ump->nilfsdev->super.s_last_cno);
742 dlen = nilfs_rw16(ump->nilfsdev->super.s_checkpoint_size);
774 last_cno = nilfs_rw64(ump->nilfsdev->super.s_last_cno);
909 mp->mnt_dev_bshift = nilfs_rw32(nilfsdev->super.s_log_block_size) + 10;