Lines Matching refs:qsb
18 static void qnx6_mmi_copy_sb(struct qnx6_super_block *qsb, in qnx6_mmi_copy_sb() argument
21 qsb->sb_magic = sb->sb_magic; in qnx6_mmi_copy_sb()
22 qsb->sb_checksum = sb->sb_checksum; in qnx6_mmi_copy_sb()
23 qsb->sb_serial = sb->sb_serial; in qnx6_mmi_copy_sb()
24 qsb->sb_blocksize = sb->sb_blocksize; in qnx6_mmi_copy_sb()
25 qsb->sb_num_inodes = sb->sb_num_inodes; in qnx6_mmi_copy_sb()
26 qsb->sb_free_inodes = sb->sb_free_inodes; in qnx6_mmi_copy_sb()
27 qsb->sb_num_blocks = sb->sb_num_blocks; in qnx6_mmi_copy_sb()
28 qsb->sb_free_blocks = sb->sb_free_blocks; in qnx6_mmi_copy_sb()
31 memcpy(&qsb->Inode, &sb->Inode, sizeof(sb->Inode)); in qnx6_mmi_copy_sb()
32 memcpy(&qsb->Bitmap, &sb->Bitmap, sizeof(sb->Bitmap)); in qnx6_mmi_copy_sb()
33 memcpy(&qsb->Longfile, &sb->Longfile, sizeof(sb->Longfile)); in qnx6_mmi_copy_sb()
40 struct qnx6_super_block *qsb = NULL; in qnx6_mmi_fill_super() local
103 qsb = kmalloc(sizeof(*qsb), GFP_KERNEL); in qnx6_mmi_fill_super()
104 if (!qsb) { in qnx6_mmi_fill_super()
112 qnx6_mmi_copy_sb(qsb, sb1); in qnx6_mmi_fill_super()
114 qnx6_superblock_debug(qsb, s); in qnx6_mmi_fill_super()
116 memcpy(bh1->b_data, qsb, sizeof(struct qnx6_super_block)); in qnx6_mmi_fill_super()
124 qnx6_mmi_copy_sb(qsb, sb2); in qnx6_mmi_fill_super()
126 qnx6_superblock_debug(qsb, s); in qnx6_mmi_fill_super()
128 memcpy(bh2->b_data, qsb, sizeof(struct qnx6_super_block)); in qnx6_mmi_fill_super()
135 kfree(qsb); in qnx6_mmi_fill_super()