fs/hfs/attr.c
36
fd.search_key->cat = HFS_I(inode)->cat_key;
fs/hfs/attr.c
83
fd.search_key->cat = HFS_I(inode)->cat_key;
fs/hfs/btree.c
272
HFS_I(inode)->phys_size = inode->i_size =
fs/hfs/btree.c
273
(loff_t)HFS_I(inode)->alloc_blocks *
fs/hfs/btree.c
275
HFS_I(inode)->fs_blocks = inode->i_size >>
fs/hfs/btree.c
48
HFS_I(tree->inode)->flags = 0;
fs/hfs/btree.c
49
mutex_init(&HFS_I(tree->inode)->extents_lock);
fs/hfs/btree.c
54
if (HFS_I(tree->inode)->alloc_blocks >
fs/hfs/btree.c
55
HFS_I(tree->inode)->first_blocks) {
fs/hfs/btree.c
67
if (!HFS_I(tree->inode)->first_blocks) {
fs/hfs/btree.c
88
dblock = hfs_ext_find_block(HFS_I(tree->inode)->first_extents, 0);
fs/hfs/dir.c
307
(btree_key *)&HFS_I(inode)->cat_key,
fs/hfs/extent.c
114
hfs_ext_build_key(fd->search_key, inode->i_ino, HFS_I(inode)->cached_start,
fs/hfs/extent.c
117
if (HFS_I(inode)->flags & HFS_FLG_EXT_NEW) {
fs/hfs/extent.c
124
hfs_brec_insert(fd, HFS_I(inode)->cached_extents, sizeof(hfs_extent_rec));
fs/hfs/extent.c
125
HFS_I(inode)->flags &= ~(HFS_FLG_EXT_DIRTY|HFS_FLG_EXT_NEW);
fs/hfs/extent.c
129
hfs_bnode_write(fd->bnode, HFS_I(inode)->cached_extents, fd->entryoffset, fd->entrylength);
fs/hfs/extent.c
130
HFS_I(inode)->flags &= ~HFS_FLG_EXT_DIRTY;
fs/hfs/extent.c
140
if (HFS_I(inode)->flags & HFS_FLG_EXT_DIRTY) {
fs/hfs/extent.c
173
if (HFS_I(inode)->flags & HFS_FLG_EXT_DIRTY) {
fs/hfs/extent.c
179
res = __hfs_ext_read_extent(fd, HFS_I(inode)->cached_extents, inode->i_ino,
fs/hfs/extent.c
182
HFS_I(inode)->cached_start = be16_to_cpu(fd->key->ext.FABN);
fs/hfs/extent.c
183
HFS_I(inode)->cached_blocks = hfs_ext_block_count(HFS_I(inode)->cached_extents);
fs/hfs/extent.c
185
HFS_I(inode)->cached_start = HFS_I(inode)->cached_blocks = 0;
fs/hfs/extent.c
186
HFS_I(inode)->flags &= ~(HFS_FLG_EXT_DIRTY|HFS_FLG_EXT_NEW);
fs/hfs/extent.c
196
if (block >= HFS_I(inode)->cached_start &&
fs/hfs/extent.c
197
block < HFS_I(inode)->cached_start + HFS_I(inode)->cached_blocks)
fs/hfs/extent.c
347
if (block >= HFS_I(inode)->fs_blocks) {
fs/hfs/extent.c
350
if (block > HFS_I(inode)->fs_blocks)
fs/hfs/extent.c
352
if (ablock >= HFS_I(inode)->alloc_blocks) {
fs/hfs/extent.c
360
if (ablock < HFS_I(inode)->first_blocks) {
fs/hfs/extent.c
361
dblock = hfs_ext_find_block(HFS_I(inode)->first_extents, ablock);
fs/hfs/extent.c
365
mutex_lock(&HFS_I(inode)->extents_lock);
fs/hfs/extent.c
368
dblock = hfs_ext_find_block(HFS_I(inode)->cached_extents,
fs/hfs/extent.c
369
ablock - HFS_I(inode)->cached_start);
fs/hfs/extent.c
371
mutex_unlock(&HFS_I(inode)->extents_lock);
fs/hfs/extent.c
374
mutex_unlock(&HFS_I(inode)->extents_lock);
fs/hfs/extent.c
383
HFS_I(inode)->phys_size += sb->s_blocksize;
fs/hfs/extent.c
384
HFS_I(inode)->fs_blocks++;
fs/hfs/extent.c
397
mutex_lock(&HFS_I(inode)->extents_lock);
fs/hfs/extent.c
398
if (HFS_I(inode)->alloc_blocks == HFS_I(inode)->first_blocks)
fs/hfs/extent.c
399
goal = hfs_ext_lastblock(HFS_I(inode)->first_extents);
fs/hfs/extent.c
401
res = hfs_ext_read_extent(inode, HFS_I(inode)->alloc_blocks);
fs/hfs/extent.c
404
goal = hfs_ext_lastblock(HFS_I(inode)->cached_extents);
fs/hfs/extent.c
407
len = HFS_I(inode)->clump_blocks;
fs/hfs/extent.c
415
if (HFS_I(inode)->alloc_blocks == HFS_I(inode)->first_blocks) {
fs/hfs/extent.c
416
if (!HFS_I(inode)->first_blocks) {
fs/hfs/extent.c
420
HFS_I(inode)->first_extents[0].block = cpu_to_be16(start);
fs/hfs/extent.c
421
HFS_I(inode)->first_extents[0].count = cpu_to_be16(len);
fs/hfs/extent.c
425
res = hfs_add_extent(HFS_I(inode)->first_extents,
fs/hfs/extent.c
426
HFS_I(inode)->alloc_blocks,
fs/hfs/extent.c
432
hfs_dump_extent(HFS_I(inode)->first_extents);
fs/hfs/extent.c
433
HFS_I(inode)->first_blocks += len;
fs/hfs/extent.c
436
res = hfs_add_extent(HFS_I(inode)->cached_extents,
fs/hfs/extent.c
437
HFS_I(inode)->alloc_blocks -
fs/hfs/extent.c
438
HFS_I(inode)->cached_start,
fs/hfs/extent.c
441
hfs_dump_extent(HFS_I(inode)->cached_extents);
fs/hfs/extent.c
442
HFS_I(inode)->flags |= HFS_FLG_EXT_DIRTY;
fs/hfs/extent.c
443
HFS_I(inode)->cached_blocks += len;
fs/hfs/extent.c
448
mutex_unlock(&HFS_I(inode)->extents_lock);
fs/hfs/extent.c
450
HFS_I(inode)->alloc_blocks += len;
fs/hfs/extent.c
465
memset(HFS_I(inode)->cached_extents, 0, sizeof(hfs_extent_rec));
fs/hfs/extent.c
466
HFS_I(inode)->cached_extents[0].block = cpu_to_be16(start);
fs/hfs/extent.c
467
HFS_I(inode)->cached_extents[0].count = cpu_to_be16(len);
fs/hfs/extent.c
468
hfs_dump_extent(HFS_I(inode)->cached_extents);
fs/hfs/extent.c
469
HFS_I(inode)->flags |= HFS_FLG_EXT_DIRTY|HFS_FLG_EXT_NEW;
fs/hfs/extent.c
470
HFS_I(inode)->cached_start = HFS_I(inode)->alloc_blocks;
fs/hfs/extent.c
471
HFS_I(inode)->cached_blocks = len;
fs/hfs/extent.c
486
inode->i_ino, (long long)HFS_I(inode)->phys_size,
fs/hfs/extent.c
488
if (inode->i_size > HFS_I(inode)->phys_size) {
fs/hfs/extent.c
502
inode->i_size = HFS_I(inode)->phys_size;
fs/hfs/extent.c
504
} else if (inode->i_size == HFS_I(inode)->phys_size)
fs/hfs/extent.c
508
alloc_cnt = HFS_I(inode)->alloc_blocks;
fs/hfs/extent.c
512
mutex_lock(&HFS_I(inode)->extents_lock);
fs/hfs/extent.c
515
mutex_unlock(&HFS_I(inode)->extents_lock);
fs/hfs/extent.c
520
if (alloc_cnt == HFS_I(inode)->first_blocks) {
fs/hfs/extent.c
521
hfs_free_extents(sb, HFS_I(inode)->first_extents,
fs/hfs/extent.c
523
hfs_dump_extent(HFS_I(inode)->first_extents);
fs/hfs/extent.c
524
HFS_I(inode)->first_blocks = blk_cnt;
fs/hfs/extent.c
530
start = HFS_I(inode)->cached_start;
fs/hfs/extent.c
531
hfs_free_extents(sb, HFS_I(inode)->cached_extents,
fs/hfs/extent.c
533
hfs_dump_extent(HFS_I(inode)->cached_extents);
fs/hfs/extent.c
535
HFS_I(inode)->flags |= HFS_FLG_EXT_DIRTY;
fs/hfs/extent.c
539
HFS_I(inode)->cached_start = HFS_I(inode)->cached_blocks = 0;
fs/hfs/extent.c
540
HFS_I(inode)->flags &= ~(HFS_FLG_EXT_DIRTY|HFS_FLG_EXT_NEW);
fs/hfs/extent.c
544
mutex_unlock(&HFS_I(inode)->extents_lock);
fs/hfs/extent.c
546
HFS_I(inode)->alloc_blocks = blk_cnt;
fs/hfs/extent.c
548
HFS_I(inode)->phys_size = inode->i_size;
fs/hfs/extent.c
549
HFS_I(inode)->fs_blocks = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits;
fs/hfs/extent.c
550
inode_set_bytes(inode, HFS_I(inode)->fs_blocks << sb->s_blocksize_bits);
fs/hfs/hfs_fs.h
59
#define HFS_IS_RSRC(inode) (HFS_I(inode)->flags & HFS_FLG_RSRC)
fs/hfs/inode.c
198
mutex_init(&HFS_I(inode)->extents_lock);
fs/hfs/inode.c
199
hfs_cat_build_key(sb, (btree_key *)&HFS_I(inode)->cat_key, dir->i_ino, name);
fs/hfs/inode.c
212
HFS_I(inode)->flags = 0;
fs/hfs/inode.c
213
HFS_I(inode)->rsrc_inode = NULL;
fs/hfs/inode.c
214
HFS_I(inode)->fs_blocks = 0;
fs/hfs/inode.c
215
HFS_I(inode)->tz_secondswest = sys_tz.tz_minuteswest * 60;
fs/hfs/inode.c
231
HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks;
fs/hfs/inode.c
247
HFS_I(inode)->phys_size = 0;
fs/hfs/inode.c
248
HFS_I(inode)->alloc_blocks = 0;
fs/hfs/inode.c
249
HFS_I(inode)->first_blocks = 0;
fs/hfs/inode.c
250
HFS_I(inode)->cached_start = 0;
fs/hfs/inode.c
251
HFS_I(inode)->cached_blocks = 0;
fs/hfs/inode.c
252
memset(HFS_I(inode)->first_extents, 0, sizeof(hfs_extent_rec));
fs/hfs/inode.c
253
memset(HFS_I(inode)->cached_extents, 0, sizeof(hfs_extent_rec));
fs/hfs/inode.c
275
if (HFS_I(inode)->cat_key.ParID == cpu_to_be32(HFS_ROOT_CNID))
fs/hfs/inode.c
283
if (HFS_I(inode)->cat_key.ParID == cpu_to_be32(HFS_ROOT_CNID))
fs/hfs/inode.c
303
memcpy(HFS_I(inode)->first_extents, ext, sizeof(hfs_extent_rec));
fs/hfs/inode.c
306
HFS_I(inode)->first_blocks = count;
fs/hfs/inode.c
307
HFS_I(inode)->cached_start = 0;
fs/hfs/inode.c
308
HFS_I(inode)->cached_blocks = 0;
fs/hfs/inode.c
310
inode->i_size = HFS_I(inode)->phys_size = log_size;
fs/hfs/inode.c
311
HFS_I(inode)->fs_blocks = (log_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits;
fs/hfs/inode.c
312
inode_set_bytes(inode, HFS_I(inode)->fs_blocks << sb->s_blocksize_bits);
fs/hfs/inode.c
313
HFS_I(inode)->alloc_blocks = be32_to_cpu(phys_size) /
fs/hfs/inode.c
315
HFS_I(inode)->clump_blocks = clump_size / HFS_SB(sb)->alloc_blksz;
fs/hfs/inode.c
316
if (!HFS_I(inode)->clump_blocks)
fs/hfs/inode.c
317
HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks;
fs/hfs/inode.c
352
HFS_I(inode)->flags = 0;
fs/hfs/inode.c
353
HFS_I(inode)->rsrc_inode = NULL;
fs/hfs/inode.c
354
mutex_init(&HFS_I(inode)->extents_lock);
fs/hfs/inode.c
362
HFS_I(inode)->cat_key = *idata->key;
fs/hfs/inode.c
364
HFS_I(inode)->flags |= HFS_FLG_RSRC;
fs/hfs/inode.c
365
HFS_I(inode)->tz_secondswest = sys_tz.tz_minuteswest * 60;
fs/hfs/inode.c
395
HFS_I(inode)->fs_blocks = 0;
fs/hfs/inode.c
444
memcpy(ext, HFS_I(inode)->first_extents, sizeof(hfs_extent_rec));
fs/hfs/inode.c
449
*phys_size = cpu_to_be32(HFS_I(inode)->alloc_blocks *
fs/hfs/inode.c
482
main_inode = HFS_I(inode)->rsrc_inode;
fs/hfs/inode.c
492
if (HFS_I(main_inode)->cat_key.CName.len > HFS_NAMELEN)
fs/hfs/inode.c
494
fd.search_key->cat = HFS_I(main_inode)->cat_key;
fs/hfs/inode.c
557
inode = HFS_I(dir)->rsrc_inode;
fs/hfs/inode.c
56
&HFS_I(mapping->host)->phys_size);
fs/hfs/inode.c
570
fd.search_key->cat = HFS_I(dir)->cat_key;
fs/hfs/inode.c
581
HFS_I(inode)->rsrc_inode = dir;
fs/hfs/inode.c
582
HFS_I(dir)->rsrc_inode = inode;
fs/hfs/inode.c
595
if (HFS_IS_RSRC(inode) && HFS_I(inode)->rsrc_inode) {
fs/hfs/inode.c
596
HFS_I(HFS_I(inode)->rsrc_inode)->rsrc_inode = NULL;
fs/hfs/inode.c
597
iput(HFS_I(inode)->rsrc_inode);
fs/hfs/inode.c
604
inode = HFS_I(inode)->rsrc_inode;
fs/hfs/inode.c
605
atomic_inc(&HFS_I(inode)->opencnt);
fs/hfs/inode.c
614
inode = HFS_I(inode)->rsrc_inode;
fs/hfs/inode.c
615
if (atomic_dec_and_test(&HFS_I(inode)->opencnt)) {
fs/hfs/super.c
179
kmem_cache_free(hfs_inode_cachep, HFS_I(inode));
fs/hfs/sysdep.c
30
diff = sys_tz.tz_minuteswest * 60 - HFS_I(inode)->tz_secondswest;
fs/hfs/sysdep.c
39
HFS_I(inode)->tz_secondswest += diff;