Lines Matching full:super

26 #include <linux/mtd/super.h>
37 * cramfs super-block data in memory
507 struct cramfs_super *super) in cramfs_read_super() argument
518 memcpy(super, cramfs_read(sb, 0, sizeof(*super)), sizeof(*super)); in cramfs_read_super()
522 if (super->magic != CRAMFS_MAGIC) { in cramfs_read_super()
524 if (super->magic == CRAMFS_MAGIC_WEND) { in cramfs_read_super()
532 memcpy(super, in cramfs_read_super()
533 cramfs_read(sb, 512, sizeof(*super)), in cramfs_read_super()
534 sizeof(*super)); in cramfs_read_super()
536 if (super->magic != CRAMFS_MAGIC) { in cramfs_read_super()
537 if (super->magic == CRAMFS_MAGIC_WEND && !silent) in cramfs_read_super()
546 if (super->flags & ~CRAMFS_SUPPORTED_FLAGS) { in cramfs_read_super()
552 if (!S_ISDIR(super->root.mode)) { in cramfs_read_super()
557 super->root.mode |= 0555; in cramfs_read_super()
559 root_offset = super->root.offset << 2; in cramfs_read_super()
560 if (super->flags & CRAMFS_FLAG_FSID_VERSION_2) { in cramfs_read_super()
561 sbi->size = super->size; in cramfs_read_super()
562 sbi->blocks = super->fsid.blocks; in cramfs_read_super()
563 sbi->files = super->fsid.files; in cramfs_read_super()
569 sbi->magic = super->magic; in cramfs_read_super()
570 sbi->flags = super->flags; in cramfs_read_super()
573 else if (!(super->flags & CRAMFS_FLAG_SHIFTED_ROOT_OFFSET) && in cramfs_read_super()
606 struct cramfs_super super; in cramfs_blkdev_fill_super() local
618 err = cramfs_read_super(sb, fc, &super); in cramfs_blkdev_fill_super()
621 return cramfs_finalize_super(sb, &super.root); in cramfs_blkdev_fill_super()
627 struct cramfs_super super; in cramfs_mtd_fill_super() local
646 err = cramfs_read_super(sb, fc, &super); in cramfs_mtd_fill_super()
662 return cramfs_finalize_super(sb, &super.root); in cramfs_mtd_fill_super()