Lines Matching refs:super

518 			     struct cramfs_super *super)  in cramfs_read_super()  argument
529 memcpy(super, cramfs_read(sb, 0, sizeof(*super)), sizeof(*super)); in cramfs_read_super()
533 if (super->magic != CRAMFS_MAGIC) { in cramfs_read_super()
535 if (super->magic == CRAMFS_MAGIC_WEND) { in cramfs_read_super()
543 memcpy(super, in cramfs_read_super()
544 cramfs_read(sb, 512, sizeof(*super)), in cramfs_read_super()
545 sizeof(*super)); in cramfs_read_super()
547 if (super->magic != CRAMFS_MAGIC) { in cramfs_read_super()
548 if (super->magic == CRAMFS_MAGIC_WEND && !silent) in cramfs_read_super()
557 if (super->flags & ~CRAMFS_SUPPORTED_FLAGS) { in cramfs_read_super()
563 if (!S_ISDIR(super->root.mode)) { in cramfs_read_super()
568 super->root.mode |= 0555; in cramfs_read_super()
570 root_offset = super->root.offset << 2; in cramfs_read_super()
571 if (super->flags & CRAMFS_FLAG_FSID_VERSION_2) { in cramfs_read_super()
572 sbi->size = super->size; in cramfs_read_super()
573 sbi->blocks = super->fsid.blocks; in cramfs_read_super()
574 sbi->files = super->fsid.files; in cramfs_read_super()
580 sbi->magic = super->magic; in cramfs_read_super()
581 sbi->flags = super->flags; in cramfs_read_super()
584 else if (!(super->flags & CRAMFS_FLAG_SHIFTED_ROOT_OFFSET) && in cramfs_read_super()
617 struct cramfs_super super; in cramfs_blkdev_fill_super() local
629 err = cramfs_read_super(sb, fc, &super); in cramfs_blkdev_fill_super()
632 return cramfs_finalize_super(sb, &super.root); in cramfs_blkdev_fill_super()
638 struct cramfs_super super; in cramfs_mtd_fill_super() local
657 err = cramfs_read_super(sb, fc, &super); in cramfs_mtd_fill_super()
673 return cramfs_finalize_super(sb, &super.root); in cramfs_mtd_fill_super()