Lines Matching refs:vhdr

47 	struct hfsplus_vh *vhdr;  in hfsplus_read_inode()  local
64 vhdr = HFSPLUS_SB(inode->i_sb).s_vhdr; in hfsplus_read_inode()
69 hfsplus_inode_read_fork(inode, &vhdr->ext_file); in hfsplus_read_inode()
73 hfsplus_inode_read_fork(inode, &vhdr->cat_file); in hfsplus_read_inode()
77 hfsplus_inode_read_fork(inode, &vhdr->alloc_file); in hfsplus_read_inode()
80 hfsplus_inode_read_fork(inode, &vhdr->start_file); in hfsplus_read_inode()
83 hfsplus_inode_read_fork(inode, &vhdr->attr_file); in hfsplus_read_inode()
98 struct hfsplus_vh *vhdr; in hfsplus_write_inode() local
105 vhdr = HFSPLUS_SB(inode->i_sb).s_vhdr; in hfsplus_write_inode()
111 if (vhdr->ext_file.total_size != cpu_to_be64(inode->i_size)) { in hfsplus_write_inode()
115 hfsplus_inode_write_fork(inode, &vhdr->ext_file); in hfsplus_write_inode()
119 if (vhdr->cat_file.total_size != cpu_to_be64(inode->i_size)) { in hfsplus_write_inode()
123 hfsplus_inode_write_fork(inode, &vhdr->cat_file); in hfsplus_write_inode()
127 if (vhdr->alloc_file.total_size != cpu_to_be64(inode->i_size)) { in hfsplus_write_inode()
131 hfsplus_inode_write_fork(inode, &vhdr->alloc_file); in hfsplus_write_inode()
134 if (vhdr->start_file.total_size != cpu_to_be64(inode->i_size)) { in hfsplus_write_inode()
138 hfsplus_inode_write_fork(inode, &vhdr->start_file); in hfsplus_write_inode()
141 if (vhdr->attr_file.total_size != cpu_to_be64(inode->i_size)) { in hfsplus_write_inode()
145 hfsplus_inode_write_fork(inode, &vhdr->attr_file); in hfsplus_write_inode()
163 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr; in hfsplus_write_super() local
171 vhdr->free_blocks = cpu_to_be32(HFSPLUS_SB(sb).free_blocks); in hfsplus_write_super()
172 vhdr->next_alloc = cpu_to_be32(HFSPLUS_SB(sb).next_alloc); in hfsplus_write_super()
173 vhdr->next_cnid = cpu_to_be32(HFSPLUS_SB(sb).next_cnid); in hfsplus_write_super()
174 vhdr->folder_count = cpu_to_be32(HFSPLUS_SB(sb).folder_count); in hfsplus_write_super()
175 vhdr->file_count = cpu_to_be32(HFSPLUS_SB(sb).file_count); in hfsplus_write_super()
189 vhdr = (struct hfsplus_vh *)(bh->b_data + offset); in hfsplus_write_super()
190 if (be16_to_cpu(vhdr->signature) == HFSPLUS_VOLHEAD_SIG) { in hfsplus_write_super()
191 memcpy(vhdr, HFSPLUS_SB(sb).s_vhdr, sizeof(*vhdr)); in hfsplus_write_super()
205 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr; in hfsplus_put_super() local
207 vhdr->modify_date = hfsp_now2mt(); in hfsplus_put_super()
208 vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_UNMNT); in hfsplus_put_super()
209 vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_INCNSTNT); in hfsplus_put_super()
241 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr; in hfsplus_remount() local
243 if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_INCNSTNT)) || in hfsplus_remount()
244 !(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) { in hfsplus_remount()
249 } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) { in hfsplus_remount()
279 struct hfsplus_vh *vhdr; in hfsplus_read_super() local
327 vhdr = HFSPLUS_SB(sb).s_vhdr; in hfsplus_read_super()
330 sb->s_magic = be16_to_cpu(vhdr->signature); in hfsplus_read_super()
331 if (be16_to_cpu(vhdr->version) != HFSPLUS_CURRENT_VERSION) { in hfsplus_read_super()
336 HFSPLUS_SB(sb).total_blocks = be32_to_cpu(vhdr->total_blocks); in hfsplus_read_super()
337 HFSPLUS_SB(sb).free_blocks = be32_to_cpu(vhdr->free_blocks); in hfsplus_read_super()
338 HFSPLUS_SB(sb).next_alloc = be32_to_cpu(vhdr->next_alloc); in hfsplus_read_super()
339 HFSPLUS_SB(sb).next_cnid = be32_to_cpu(vhdr->next_cnid); in hfsplus_read_super()
340 HFSPLUS_SB(sb).file_count = be32_to_cpu(vhdr->file_count); in hfsplus_read_super()
341 HFSPLUS_SB(sb).folder_count = be32_to_cpu(vhdr->folder_count); in hfsplus_read_super()
346 if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_INCNSTNT)) || in hfsplus_read_super()
347 !(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) { in hfsplus_read_super()
352 } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) { in hfsplus_read_super()
407 vhdr->last_mount_vers = cpu_to_be32(HFSP_MOUNT_VERSION); in hfsplus_read_super()
408 vhdr->modify_date = hfsp_now2mt(); in hfsplus_read_super()
409 vhdr->write_count = cpu_to_be32(be32_to_cpu(vhdr->write_count) + 1); in hfsplus_read_super()
410 vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_UNMNT); in hfsplus_read_super()
411 vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_INCNSTNT); in hfsplus_read_super()