Lines Matching refs:vhdr

27 	struct hfsplus_vh *vhdr = HFSPLUS_SB(inode->i_sb)->s_vhdr;  in hfsplus_system_read_inode()  local
31 hfsplus_inode_read_fork(inode, &vhdr->ext_file); in hfsplus_system_read_inode()
35 hfsplus_inode_read_fork(inode, &vhdr->cat_file); in hfsplus_system_read_inode()
39 hfsplus_inode_read_fork(inode, &vhdr->alloc_file); in hfsplus_system_read_inode()
43 hfsplus_inode_read_fork(inode, &vhdr->start_file); in hfsplus_system_read_inode()
46 hfsplus_inode_read_fork(inode, &vhdr->attr_file); in hfsplus_system_read_inode()
100 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_system_write_inode() local
106 fork = &vhdr->ext_file; in hfsplus_system_write_inode()
110 fork = &vhdr->cat_file; in hfsplus_system_write_inode()
114 fork = &vhdr->alloc_file; in hfsplus_system_write_inode()
117 fork = &vhdr->start_file; in hfsplus_system_write_inode()
120 fork = &vhdr->attr_file; in hfsplus_system_write_inode()
176 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_sync_fs() local
209 vhdr->free_blocks = cpu_to_be32(sbi->free_blocks); in hfsplus_sync_fs()
210 vhdr->next_cnid = cpu_to_be32(sbi->next_cnid); in hfsplus_sync_fs()
211 vhdr->folder_count = cpu_to_be32(sbi->folder_count); in hfsplus_sync_fs()
212 vhdr->file_count = cpu_to_be32(sbi->file_count); in hfsplus_sync_fs()
284 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_put_super() local
286 vhdr->modify_date = hfsp_now2mt(); in hfsplus_put_super()
287 vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_UNMNT); in hfsplus_put_super()
288 vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_INCNSTNT); in hfsplus_put_super()
331 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb)->s_vhdr; in hfsplus_remount() local
337 if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) { in hfsplus_remount()
343 } else if (vhdr->attributes & in hfsplus_remount()
348 } else if (vhdr->attributes & in hfsplus_remount()
372 struct hfsplus_vh *vhdr; in hfsplus_fill_super() local
414 vhdr = sbi->s_vhdr; in hfsplus_fill_super()
418 if (be16_to_cpu(vhdr->version) < HFSPLUS_MIN_VERSION || in hfsplus_fill_super()
419 be16_to_cpu(vhdr->version) > HFSPLUS_CURRENT_VERSION) { in hfsplus_fill_super()
423 sbi->total_blocks = be32_to_cpu(vhdr->total_blocks); in hfsplus_fill_super()
424 sbi->free_blocks = be32_to_cpu(vhdr->free_blocks); in hfsplus_fill_super()
425 sbi->next_cnid = be32_to_cpu(vhdr->next_cnid); in hfsplus_fill_super()
426 sbi->file_count = be32_to_cpu(vhdr->file_count); in hfsplus_fill_super()
427 sbi->folder_count = be32_to_cpu(vhdr->folder_count); in hfsplus_fill_super()
429 be32_to_cpu(vhdr->data_clump_sz) >> sbi->alloc_blksz_shift; in hfsplus_fill_super()
433 be32_to_cpu(vhdr->rsrc_clump_sz) >> sbi->alloc_blksz_shift; in hfsplus_fill_super()
452 if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) { in hfsplus_fill_super()
457 } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) { in hfsplus_fill_super()
460 } else if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_JOURNALED)) && in hfsplus_fill_super()
480 if (vhdr->attr_file.total_blocks != 0) { in hfsplus_fill_super()
539 vhdr->last_mount_vers = cpu_to_be32(HFSP_MOUNT_VERSION); in hfsplus_fill_super()
540 vhdr->modify_date = hfsp_now2mt(); in hfsplus_fill_super()
541 be32_add_cpu(&vhdr->write_count, 1); in hfsplus_fill_super()
542 vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_UNMNT); in hfsplus_fill_super()
543 vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_INCNSTNT); in hfsplus_fill_super()