Lines Matching refs:vhdr

29 	struct hfsplus_vh *vhdr = HFSPLUS_SB(inode->i_sb)->s_vhdr;  in hfsplus_system_read_inode()  local
33 hfsplus_inode_read_fork(inode, &vhdr->ext_file); in hfsplus_system_read_inode()
37 hfsplus_inode_read_fork(inode, &vhdr->cat_file); in hfsplus_system_read_inode()
41 hfsplus_inode_read_fork(inode, &vhdr->alloc_file); in hfsplus_system_read_inode()
45 hfsplus_inode_read_fork(inode, &vhdr->start_file); in hfsplus_system_read_inode()
48 hfsplus_inode_read_fork(inode, &vhdr->attr_file); in hfsplus_system_read_inode()
103 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_system_write_inode() local
109 fork = &vhdr->ext_file; in hfsplus_system_write_inode()
113 fork = &vhdr->cat_file; in hfsplus_system_write_inode()
117 fork = &vhdr->alloc_file; in hfsplus_system_write_inode()
120 fork = &vhdr->start_file; in hfsplus_system_write_inode()
123 fork = &vhdr->attr_file; in hfsplus_system_write_inode()
179 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_sync_fs() local
212 vhdr->free_blocks = cpu_to_be32(sbi->free_blocks); in hfsplus_sync_fs()
213 vhdr->next_cnid = cpu_to_be32(sbi->next_cnid); in hfsplus_sync_fs()
214 vhdr->folder_count = cpu_to_be32(sbi->folder_count); in hfsplus_sync_fs()
215 vhdr->file_count = cpu_to_be32(sbi->file_count); in hfsplus_sync_fs()
289 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_put_super() local
291 vhdr->modify_date = hfsp_now2mt(); in hfsplus_put_super()
292 vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_UNMNT); in hfsplus_put_super()
293 vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_INCNSTNT); in hfsplus_put_super()
335 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb)->s_vhdr; in hfsplus_remount() local
341 if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) { in hfsplus_remount()
347 } else if (vhdr->attributes & in hfsplus_remount()
352 } else if (vhdr->attributes & in hfsplus_remount()
376 struct hfsplus_vh *vhdr; in hfsplus_fill_super() local
418 vhdr = sbi->s_vhdr; in hfsplus_fill_super()
422 if (be16_to_cpu(vhdr->version) < HFSPLUS_MIN_VERSION || in hfsplus_fill_super()
423 be16_to_cpu(vhdr->version) > HFSPLUS_CURRENT_VERSION) { in hfsplus_fill_super()
427 sbi->total_blocks = be32_to_cpu(vhdr->total_blocks); in hfsplus_fill_super()
428 sbi->free_blocks = be32_to_cpu(vhdr->free_blocks); in hfsplus_fill_super()
429 sbi->next_cnid = be32_to_cpu(vhdr->next_cnid); in hfsplus_fill_super()
430 sbi->file_count = be32_to_cpu(vhdr->file_count); in hfsplus_fill_super()
431 sbi->folder_count = be32_to_cpu(vhdr->folder_count); in hfsplus_fill_super()
433 be32_to_cpu(vhdr->data_clump_sz) >> sbi->alloc_blksz_shift; in hfsplus_fill_super()
437 be32_to_cpu(vhdr->rsrc_clump_sz) >> sbi->alloc_blksz_shift; in hfsplus_fill_super()
456 if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) { in hfsplus_fill_super()
461 } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) { in hfsplus_fill_super()
464 } else if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_JOURNALED)) && in hfsplus_fill_super()
484 if (vhdr->attr_file.total_blocks != 0) { in hfsplus_fill_super()
545 vhdr->last_mount_vers = cpu_to_be32(HFSP_MOUNT_VERSION); in hfsplus_fill_super()
546 vhdr->modify_date = hfsp_now2mt(); in hfsplus_fill_super()
547 be32_add_cpu(&vhdr->write_count, 1); in hfsplus_fill_super()
548 vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_UNMNT); in hfsplus_fill_super()
549 vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_INCNSTNT); in hfsplus_fill_super()