Lines Matching refs:sblk
132 if (SQUASHFS_CHECK_DATA(msblk->sblk.flags)) { in get_block_length()
250 (SQUASHFS_CHECK_DATA(msblk->sblk.flags) in squashfs_read_data()
528 struct squashfs_super_block *sblk = &msblk->sblk; in squashfs_iget() local
530 sblk->inode_table_start; in squashfs_iget()
595 if (sblk->block_size > 4096) in squashfs_iget()
648 if (sblk->block_size > 4096) in squashfs_iget()
858 struct squashfs_super_block *sblk = &msblk->sblk; in read_fragment_index_table() local
861 (sblk->fragments), GFP_KERNEL))) { in read_fragment_index_table()
866 if (SQUASHFS_FRAGMENT_INDEX_BYTES(sblk->fragments) && in read_fragment_index_table()
869 sblk->fragment_table_start, in read_fragment_index_table()
871 (sblk->fragments) | in read_fragment_index_table()
881 for (i = 0; i < SQUASHFS_FRAGMENT_INDEXES(sblk->fragments); in read_fragment_index_table()
895 struct squashfs_super_block *sblk = &msblk->sblk; in supported_squashfs_filesystem() local
901 if (sblk->s_major == 1) { in supported_squashfs_filesystem()
909 } else if (sblk->s_major == 2) { in supported_squashfs_filesystem()
917 } else if(sblk->s_major != SQUASHFS_MAJOR || sblk->s_minor > in supported_squashfs_filesystem()
920 "filesystem\n", sblk->s_major, sblk->s_minor); in supported_squashfs_filesystem()
934 struct squashfs_super_block *sblk = &msblk->sblk; in squashfs_read_super() local
959 if (!squashfs_read_data(s, (char *) sblk, SQUASHFS_START, in squashfs_read_super()
968 if ((s->s_magic = sblk->s_magic) != SQUASHFS_MAGIC) { in squashfs_read_super()
969 if (sblk->s_magic == SQUASHFS_MAGIC_SWAP) { in squashfs_read_super()
975 SQUASHFS_SWAP_SUPER_BLOCK(&ssblk, sblk); in squashfs_read_super()
976 memcpy(sblk, &ssblk, sizeof(struct squashfs_super_block)); in squashfs_read_super()
992 (sblk->flags) ? "un" : ""); in squashfs_read_super()
994 SQUASHFS_UNCOMPRESSED_DATA(sblk->flags) in squashfs_read_super()
997 SQUASHFS_CHECK_DATA(sblk->flags) ? in squashfs_read_super()
999 TRACE("Filesystem size %lld bytes\n", sblk->bytes_used); in squashfs_read_super()
1000 TRACE("Block size %d\n", sblk->block_size); in squashfs_read_super()
1001 TRACE("Number of inodes %d\n", sblk->inodes); in squashfs_read_super()
1002 if (sblk->s_major > 1) in squashfs_read_super()
1003 TRACE("Number of fragments %d\n", sblk->fragments); in squashfs_read_super()
1004 TRACE("Number of uids %d\n", sblk->no_uids); in squashfs_read_super()
1005 TRACE("Number of gids %d\n", sblk->no_guids); in squashfs_read_super()
1006 TRACE("sblk->inode_table_start %llx\n", sblk->inode_table_start); in squashfs_read_super()
1007 TRACE("sblk->directory_table_start %llx\n", sblk->directory_table_start); in squashfs_read_super()
1008 if (sblk->s_major > 1) in squashfs_read_super()
1010 sblk->fragment_table_start); in squashfs_read_super()
1011 TRACE("sblk->uid_start %llx\n", sblk->uid_start); in squashfs_read_super()
1029 msblk->read_size = (sblk->block_size < SQUASHFS_METADATA_SIZE) ? in squashfs_read_super()
1031 sblk->block_size; in squashfs_read_super()
1039 if (!(msblk->read_page = kmalloc(sblk->block_size, GFP_KERNEL))) { in squashfs_read_super()
1045 if (!(msblk->uid = kmalloc((sblk->no_uids + sblk->no_guids) * in squashfs_read_super()
1050 msblk->guid = msblk->uid + sblk->no_uids; in squashfs_read_super()
1053 unsigned int suid[sblk->no_uids + sblk->no_guids]; in squashfs_read_super()
1055 if (!squashfs_read_data(s, (char *) &suid, sblk->uid_start, in squashfs_read_super()
1056 ((sblk->no_uids + sblk->no_guids) * in squashfs_read_super()
1063 SQUASHFS_SWAP_DATA(msblk->uid, suid, (sblk->no_uids + in squashfs_read_super()
1064 sblk->no_guids), (sizeof(unsigned int) * 8)); in squashfs_read_super()
1066 if (!squashfs_read_data(s, (char *) msblk->uid, sblk->uid_start, in squashfs_read_super()
1067 ((sblk->no_uids + sblk->no_guids) * in squashfs_read_super()
1075 if (sblk->s_major == 1 && squashfs_1_0_supported(msblk)) in squashfs_read_super()
1097 if ((root = (msblk->iget)(s, sblk->root_inode)) == NULL) in squashfs_read_super()
1125 struct squashfs_super_block *sblk = &msblk->sblk; in squashfs_statfs() local
1130 buf->f_bsize = sblk->block_size; in squashfs_statfs()
1131 buf->f_blocks = ((sblk->bytes_used - 1) >> sblk->block_log) + 1; in squashfs_statfs()
1133 buf->f_files = sblk->inodes; in squashfs_statfs()
1330 struct squashfs_super_block *sblk = &msblk->sblk; in get_meta_index() local
1331 int skip = calculate_skip(i_size_read(inode) >> sblk->block_log); in get_meta_index()
1353 cur_index_block = meta_entry->index_block + sblk->inode_table_start; in get_meta_index()
1383 meta_entry->index_block = cur_index_block - sblk->inode_table_start; in get_meta_index()
1454 struct squashfs_super_block *sblk = &msblk->sblk; in squashfs_readpage() local
1458 int index = page->index >> (sblk->block_log - PAGE_CACHE_SHIFT); in squashfs_readpage()
1463 int mask = (1 << (sblk->block_log - PAGE_CACHE_SHIFT)) - 1; in squashfs_readpage()
1477 sblk->block_log)) { in squashfs_readpage()
1505 (i_size_read(inode) & (sblk->block_size in squashfs_readpage()
1548 sblk->block_log)) in squashfs_readpage()
1571 struct squashfs_super_block *sblk = &msblk->sblk; in squashfs_readpage4K() local
1589 sblk->block_log)) { in squashfs_readpage4K()
1611 bytes = i_size_read(inode) & (sblk->block_size - 1); in squashfs_readpage4K()
1640 struct squashfs_super_block *sblk = &msblk->sblk; in get_dir_index_using_offset() local
1673 *next_block = index.start_block + sblk->directory_table_start; in get_dir_index_using_offset()
1690 struct squashfs_super_block *sblk = &msblk->sblk; in get_dir_index_using_name() local
1725 *next_block = index->start_block + sblk->directory_table_start; in get_dir_index_using_name()
1737 struct squashfs_super_block *sblk = &msblk->sblk; in squashfs_readdir() local
1739 sblk->directory_table_start; in squashfs_readdir()
1872 struct squashfs_super_block *sblk = &msblk->sblk; in squashfs_lookup() local
1874 sblk->directory_table_start; in squashfs_lookup()