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