Lines Matching full:super

26 #include <linux/mtd/super.h>
37 * cramfs super-block data in memory
511 struct cramfs_super *super) in cramfs_read_super() argument
522 memcpy(super, cramfs_read(sb, 0, sizeof(*super)), sizeof(*super)); in cramfs_read_super()
526 if (super->magic != CRAMFS_MAGIC) { in cramfs_read_super()
528 if (super->magic == CRAMFS_MAGIC_WEND) { in cramfs_read_super()
536 memcpy(super, in cramfs_read_super()
537 cramfs_read(sb, 512, sizeof(*super)), in cramfs_read_super()
538 sizeof(*super)); in cramfs_read_super()
540 if (super->magic != CRAMFS_MAGIC) { in cramfs_read_super()
541 if (super->magic == CRAMFS_MAGIC_WEND && !silent) in cramfs_read_super()
550 if (super->flags & ~CRAMFS_SUPPORTED_FLAGS) { in cramfs_read_super()
556 if (!S_ISDIR(super->root.mode)) { in cramfs_read_super()
561 super->root.mode |= 0555; in cramfs_read_super()
563 root_offset = super->root.offset << 2; in cramfs_read_super()
564 if (super->flags & CRAMFS_FLAG_FSID_VERSION_2) { in cramfs_read_super()
565 sbi->size = super->size; in cramfs_read_super()
566 sbi->blocks = super->fsid.blocks; in cramfs_read_super()
567 sbi->files = super->fsid.files; in cramfs_read_super()
573 sbi->magic = super->magic; in cramfs_read_super()
574 sbi->flags = super->flags; in cramfs_read_super()
577 else if (!(super->flags & CRAMFS_FLAG_SHIFTED_ROOT_OFFSET) && in cramfs_read_super()
610 struct cramfs_super super; in cramfs_blkdev_fill_super() local
622 err = cramfs_read_super(sb, fc, &super); in cramfs_blkdev_fill_super()
625 return cramfs_finalize_super(sb, &super.root); in cramfs_blkdev_fill_super()
631 struct cramfs_super super; in cramfs_mtd_fill_super() local
650 err = cramfs_read_super(sb, fc, &super); in cramfs_mtd_fill_super()
666 return cramfs_finalize_super(sb, &super.root); in cramfs_mtd_fill_super()