Lines Matching refs:vhdr
28 struct hfsplus_vh *vhdr = HFSPLUS_SB(inode->i_sb)->s_vhdr; in hfsplus_system_read_inode() local
32 hfsplus_inode_read_fork(inode, &vhdr->ext_file); in hfsplus_system_read_inode()
36 hfsplus_inode_read_fork(inode, &vhdr->cat_file); in hfsplus_system_read_inode()
40 hfsplus_inode_read_fork(inode, &vhdr->alloc_file); in hfsplus_system_read_inode()
44 hfsplus_inode_read_fork(inode, &vhdr->start_file); in hfsplus_system_read_inode()
47 hfsplus_inode_read_fork(inode, &vhdr->attr_file); in hfsplus_system_read_inode()
101 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_system_write_inode() local
107 fork = &vhdr->ext_file; in hfsplus_system_write_inode()
111 fork = &vhdr->cat_file; in hfsplus_system_write_inode()
115 fork = &vhdr->alloc_file; in hfsplus_system_write_inode()
118 fork = &vhdr->start_file; in hfsplus_system_write_inode()
121 fork = &vhdr->attr_file; in hfsplus_system_write_inode()
177 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_sync_fs() local
210 vhdr->free_blocks = cpu_to_be32(sbi->free_blocks); in hfsplus_sync_fs()
211 vhdr->next_cnid = cpu_to_be32(sbi->next_cnid); in hfsplus_sync_fs()
212 vhdr->folder_count = cpu_to_be32(sbi->folder_count); in hfsplus_sync_fs()
213 vhdr->file_count = cpu_to_be32(sbi->file_count); in hfsplus_sync_fs()
285 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_put_super() local
287 vhdr->modify_date = hfsp_now2mt(); in hfsplus_put_super()
288 vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_UNMNT); in hfsplus_put_super()
289 vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_INCNSTNT); in hfsplus_put_super()
332 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb)->s_vhdr; in hfsplus_remount() local
338 if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) { in hfsplus_remount()
344 } else if (vhdr->attributes & in hfsplus_remount()
349 } else if (vhdr->attributes & in hfsplus_remount()
373 struct hfsplus_vh *vhdr; in hfsplus_fill_super() local
415 vhdr = sbi->s_vhdr; in hfsplus_fill_super()
419 if (be16_to_cpu(vhdr->version) < HFSPLUS_MIN_VERSION || in hfsplus_fill_super()
420 be16_to_cpu(vhdr->version) > HFSPLUS_CURRENT_VERSION) { in hfsplus_fill_super()
424 sbi->total_blocks = be32_to_cpu(vhdr->total_blocks); in hfsplus_fill_super()
425 sbi->free_blocks = be32_to_cpu(vhdr->free_blocks); in hfsplus_fill_super()
426 sbi->next_cnid = be32_to_cpu(vhdr->next_cnid); in hfsplus_fill_super()
427 sbi->file_count = be32_to_cpu(vhdr->file_count); in hfsplus_fill_super()
428 sbi->folder_count = be32_to_cpu(vhdr->folder_count); in hfsplus_fill_super()
430 be32_to_cpu(vhdr->data_clump_sz) >> sbi->alloc_blksz_shift; in hfsplus_fill_super()
434 be32_to_cpu(vhdr->rsrc_clump_sz) >> sbi->alloc_blksz_shift; in hfsplus_fill_super()
453 if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) { in hfsplus_fill_super()
458 } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) { in hfsplus_fill_super()
461 } else if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_JOURNALED)) && in hfsplus_fill_super()
481 if (vhdr->attr_file.total_blocks != 0) { in hfsplus_fill_super()
540 vhdr->last_mount_vers = cpu_to_be32(HFSP_MOUNT_VERSION); in hfsplus_fill_super()
541 vhdr->modify_date = hfsp_now2mt(); in hfsplus_fill_super()
542 be32_add_cpu(&vhdr->write_count, 1); in hfsplus_fill_super()
543 vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_UNMNT); in hfsplus_fill_super()
544 vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_INCNSTNT); in hfsplus_fill_super()