HFSPLUS_I 201 fs/hfsplus/btree.c HFSPLUS_I(inode).phys_size = inode->i_size = HFSPLUS_I 202 fs/hfsplus/btree.c (loff_t)HFSPLUS_I(inode).alloc_blocks << HFSPLUS_I 204 fs/hfsplus/btree.c HFSPLUS_I(inode).fs_blocks = HFSPLUS_I(inode).alloc_blocks << HFSPLUS_I 80 fs/hfsplus/catalog.c HFSPLUS_I(inode).rootflags = perms->rootflags; HFSPLUS_I 81 fs/hfsplus/catalog.c HFSPLUS_I(inode).userflags = perms->userflags; HFSPLUS_I 96 fs/hfsplus/catalog.c HFSPLUS_I(inode).create_date = HFSPLUS_I 114 fs/hfsplus/catalog.c HFSPLUS_I(inode).create_date = HFSPLUS_I 134 fs/hfsplus/catalog.c file->create_date = HFSPLUS_I(HFSPLUS_SB(inode->i_sb).hidden_dir).create_date; HFSPLUS_I 135 fs/hfsplus/catalog.c file->permissions.dev = cpu_to_be32(HFSPLUS_I(inode).dev); HFSPLUS_I 277 fs/hfsplus/catalog.c list_for_each(pos, &HFSPLUS_I(dir).open_dir_list) { HFSPLUS_I 71 fs/hfsplus/dir.c (entry.file.create_date == HFSPLUS_I(HFSPLUS_SB(sb).hidden_dir).create_date || HFSPLUS_I 72 fs/hfsplus/dir.c entry.file.create_date == HFSPLUS_I(sb->s_root->d_inode).create_date) && HFSPLUS_I 104 fs/hfsplus/dir.c HFSPLUS_I(inode).dev = linkid; HFSPLUS_I 220 fs/hfsplus/dir.c list_add(&rd->list, &HFSPLUS_I(inode).open_dir_list); HFSPLUS_I 288 fs/hfsplus/dir.c HFSPLUS_I(inode).dev = id; HFSPLUS_I 327 fs/hfsplus/dir.c atomic_read(&HFSPLUS_I(inode).opencnt)) { HFSPLUS_I 348 fs/hfsplus/dir.c if (!atomic_read(&HFSPLUS_I(inode).opencnt)) { HFSPLUS_I 90 fs/hfsplus/extents.c hfsplus_ext_build_key(fd->search_key, inode->i_ino, HFSPLUS_I(inode).cached_start, HFSPLUS_I 93 fs/hfsplus/extents.c if (HFSPLUS_I(inode).flags & HFSPLUS_FLG_EXT_NEW) { HFSPLUS_I 96 fs/hfsplus/extents.c hfs_brec_insert(fd, HFSPLUS_I(inode).cached_extents, sizeof(hfsplus_extent_rec)); HFSPLUS_I 97 fs/hfsplus/extents.c HFSPLUS_I(inode).flags &= ~(HFSPLUS_FLG_EXT_DIRTY | HFSPLUS_FLG_EXT_NEW); HFSPLUS_I 101 fs/hfsplus/extents.c hfs_bnode_write(fd->bnode, HFSPLUS_I(inode).cached_extents, fd->entryoffset, fd->entrylength); HFSPLUS_I 102 fs/hfsplus/extents.c HFSPLUS_I(inode).flags &= ~HFSPLUS_FLG_EXT_DIRTY; HFSPLUS_I 108 fs/hfsplus/extents.c if (HFSPLUS_I(inode).flags & HFSPLUS_FLG_EXT_DIRTY) { HFSPLUS_I 141 fs/hfsplus/extents.c if (HFSPLUS_I(inode).flags & HFSPLUS_FLG_EXT_DIRTY) HFSPLUS_I 144 fs/hfsplus/extents.c res = __hfsplus_ext_read_extent(fd, HFSPLUS_I(inode).cached_extents, inode->i_ino, HFSPLUS_I 147 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_start = be32_to_cpu(fd->key->ext.start_block); HFSPLUS_I 148 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_blocks = hfsplus_ext_block_count(HFSPLUS_I(inode).cached_extents); HFSPLUS_I 150 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_start = HFSPLUS_I(inode).cached_blocks = 0; HFSPLUS_I 151 fs/hfsplus/extents.c HFSPLUS_I(inode).flags &= ~(HFSPLUS_FLG_EXT_DIRTY | HFSPLUS_FLG_EXT_NEW); HFSPLUS_I 161 fs/hfsplus/extents.c if (block >= HFSPLUS_I(inode).cached_start && HFSPLUS_I 162 fs/hfsplus/extents.c block < HFSPLUS_I(inode).cached_start + HFSPLUS_I(inode).cached_blocks) HFSPLUS_I 186 fs/hfsplus/extents.c if (iblock >= HFSPLUS_I(inode).fs_blocks) { HFSPLUS_I 187 fs/hfsplus/extents.c if (iblock > HFSPLUS_I(inode).fs_blocks || !create) HFSPLUS_I 189 fs/hfsplus/extents.c if (ablock >= HFSPLUS_I(inode).alloc_blocks) { HFSPLUS_I 197 fs/hfsplus/extents.c if (ablock < HFSPLUS_I(inode).first_blocks) { HFSPLUS_I 198 fs/hfsplus/extents.c dblock = hfsplus_ext_find_block(HFSPLUS_I(inode).first_extents, ablock); HFSPLUS_I 202 fs/hfsplus/extents.c mutex_lock(&HFSPLUS_I(inode).extents_lock); HFSPLUS_I 205 fs/hfsplus/extents.c dblock = hfsplus_ext_find_block(HFSPLUS_I(inode).cached_extents, ablock - HFSPLUS_I 206 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_start); HFSPLUS_I 208 fs/hfsplus/extents.c mutex_unlock(&HFSPLUS_I(inode).extents_lock); HFSPLUS_I 211 fs/hfsplus/extents.c mutex_unlock(&HFSPLUS_I(inode).extents_lock); HFSPLUS_I 219 fs/hfsplus/extents.c HFSPLUS_I(inode).phys_size += sb->s_blocksize; HFSPLUS_I 220 fs/hfsplus/extents.c HFSPLUS_I(inode).fs_blocks++; HFSPLUS_I 358 fs/hfsplus/extents.c mutex_lock(&HFSPLUS_I(inode).extents_lock); HFSPLUS_I 359 fs/hfsplus/extents.c if (HFSPLUS_I(inode).alloc_blocks == HFSPLUS_I(inode).first_blocks) HFSPLUS_I 360 fs/hfsplus/extents.c goal = hfsplus_ext_lastblock(HFSPLUS_I(inode).first_extents); HFSPLUS_I 362 fs/hfsplus/extents.c res = hfsplus_ext_read_extent(inode, HFSPLUS_I(inode).alloc_blocks); HFSPLUS_I 365 fs/hfsplus/extents.c goal = hfsplus_ext_lastblock(HFSPLUS_I(inode).cached_extents); HFSPLUS_I 368 fs/hfsplus/extents.c len = HFSPLUS_I(inode).clump_blocks; HFSPLUS_I 379 fs/hfsplus/extents.c if (HFSPLUS_I(inode).alloc_blocks <= HFSPLUS_I(inode).first_blocks) { HFSPLUS_I 380 fs/hfsplus/extents.c if (!HFSPLUS_I(inode).first_blocks) { HFSPLUS_I 383 fs/hfsplus/extents.c HFSPLUS_I(inode).first_extents[0].start_block = cpu_to_be32(start); HFSPLUS_I 384 fs/hfsplus/extents.c HFSPLUS_I(inode).first_extents[0].block_count = cpu_to_be32(len); HFSPLUS_I 388 fs/hfsplus/extents.c res = hfsplus_add_extent(HFSPLUS_I(inode).first_extents, HFSPLUS_I 389 fs/hfsplus/extents.c HFSPLUS_I(inode).alloc_blocks, HFSPLUS_I 395 fs/hfsplus/extents.c hfsplus_dump_extent(HFSPLUS_I(inode).first_extents); HFSPLUS_I 396 fs/hfsplus/extents.c HFSPLUS_I(inode).first_blocks += len; HFSPLUS_I 399 fs/hfsplus/extents.c res = hfsplus_add_extent(HFSPLUS_I(inode).cached_extents, HFSPLUS_I 400 fs/hfsplus/extents.c HFSPLUS_I(inode).alloc_blocks - HFSPLUS_I 401 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_start, HFSPLUS_I 404 fs/hfsplus/extents.c hfsplus_dump_extent(HFSPLUS_I(inode).cached_extents); HFSPLUS_I 405 fs/hfsplus/extents.c HFSPLUS_I(inode).flags |= HFSPLUS_FLG_EXT_DIRTY; HFSPLUS_I 406 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_blocks += len; HFSPLUS_I 411 fs/hfsplus/extents.c mutex_unlock(&HFSPLUS_I(inode).extents_lock); HFSPLUS_I 413 fs/hfsplus/extents.c HFSPLUS_I(inode).alloc_blocks += len; HFSPLUS_I 422 fs/hfsplus/extents.c memset(HFSPLUS_I(inode).cached_extents, 0, sizeof(hfsplus_extent_rec)); HFSPLUS_I 423 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_extents[0].start_block = cpu_to_be32(start); HFSPLUS_I 424 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_extents[0].block_count = cpu_to_be32(len); HFSPLUS_I 425 fs/hfsplus/extents.c hfsplus_dump_extent(HFSPLUS_I(inode).cached_extents); HFSPLUS_I 426 fs/hfsplus/extents.c HFSPLUS_I(inode).flags |= HFSPLUS_FLG_EXT_DIRTY | HFSPLUS_FLG_EXT_NEW; HFSPLUS_I 427 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_start = HFSPLUS_I(inode).alloc_blocks; HFSPLUS_I 428 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_blocks = len; HFSPLUS_I 442 fs/hfsplus/extents.c (long long)HFSPLUS_I(inode).phys_size, inode->i_size); HFSPLUS_I 443 fs/hfsplus/extents.c if (inode->i_size > HFSPLUS_I(inode).phys_size) { HFSPLUS_I 460 fs/hfsplus/extents.c } else if (inode->i_size == HFSPLUS_I(inode).phys_size) HFSPLUS_I 464 fs/hfsplus/extents.c alloc_cnt = HFSPLUS_I(inode).alloc_blocks; HFSPLUS_I 468 fs/hfsplus/extents.c mutex_lock(&HFSPLUS_I(inode).extents_lock); HFSPLUS_I 471 fs/hfsplus/extents.c if (alloc_cnt == HFSPLUS_I(inode).first_blocks) { HFSPLUS_I 472 fs/hfsplus/extents.c hfsplus_free_extents(sb, HFSPLUS_I(inode).first_extents, HFSPLUS_I 474 fs/hfsplus/extents.c hfsplus_dump_extent(HFSPLUS_I(inode).first_extents); HFSPLUS_I 475 fs/hfsplus/extents.c HFSPLUS_I(inode).first_blocks = blk_cnt; HFSPLUS_I 481 fs/hfsplus/extents.c start = HFSPLUS_I(inode).cached_start; HFSPLUS_I 482 fs/hfsplus/extents.c hfsplus_free_extents(sb, HFSPLUS_I(inode).cached_extents, HFSPLUS_I 484 fs/hfsplus/extents.c hfsplus_dump_extent(HFSPLUS_I(inode).cached_extents); HFSPLUS_I 486 fs/hfsplus/extents.c HFSPLUS_I(inode).flags |= HFSPLUS_FLG_EXT_DIRTY; HFSPLUS_I 490 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_start = HFSPLUS_I(inode).cached_blocks = 0; HFSPLUS_I 491 fs/hfsplus/extents.c HFSPLUS_I(inode).flags &= ~(HFSPLUS_FLG_EXT_DIRTY | HFSPLUS_FLG_EXT_NEW); HFSPLUS_I 495 fs/hfsplus/extents.c mutex_unlock(&HFSPLUS_I(inode).extents_lock); HFSPLUS_I 497 fs/hfsplus/extents.c HFSPLUS_I(inode).alloc_blocks = blk_cnt; HFSPLUS_I 499 fs/hfsplus/extents.c HFSPLUS_I(inode).phys_size = inode->i_size; HFSPLUS_I 500 fs/hfsplus/extents.c HFSPLUS_I(inode).fs_blocks = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; HFSPLUS_I 501 fs/hfsplus/extents.c inode_set_bytes(inode, HFSPLUS_I(inode).fs_blocks << sb->s_blocksize_bits); HFSPLUS_I 187 fs/hfsplus/hfsplus_fs.h #define HFSPLUS_IS_DATA(inode) (!(HFSPLUS_I(inode).flags & HFSPLUS_FLG_RSRC)) HFSPLUS_I 188 fs/hfsplus/hfsplus_fs.h #define HFSPLUS_IS_RSRC(inode) (HFSPLUS_I(inode).flags & HFSPLUS_FLG_RSRC) HFSPLUS_I 37 fs/hfsplus/inode.c &HFSPLUS_I(mapping->host).phys_size); HFSPLUS_I 156 fs/hfsplus/inode.c inode = HFSPLUS_I(dir).rsrc_inode; HFSPLUS_I 165 fs/hfsplus/inode.c INIT_LIST_HEAD(&HFSPLUS_I(inode).open_dir_list); HFSPLUS_I 166 fs/hfsplus/inode.c mutex_init(&HFSPLUS_I(inode).extents_lock); HFSPLUS_I 167 fs/hfsplus/inode.c HFSPLUS_I(inode).flags = HFSPLUS_FLG_RSRC; HFSPLUS_I 178 fs/hfsplus/inode.c HFSPLUS_I(inode).rsrc_inode = dir; HFSPLUS_I 179 fs/hfsplus/inode.c HFSPLUS_I(dir).rsrc_inode = inode; HFSPLUS_I 212 fs/hfsplus/inode.c HFSPLUS_I(inode).rootflags = perms->rootflags; HFSPLUS_I 213 fs/hfsplus/inode.c HFSPLUS_I(inode).userflags = perms->userflags; HFSPLUS_I 234 fs/hfsplus/inode.c perms->userflags = HFSPLUS_I(inode).userflags; HFSPLUS_I 238 fs/hfsplus/inode.c perms->dev = cpu_to_be32(HFSPLUS_I(inode).dev); HFSPLUS_I 256 fs/hfsplus/inode.c inode = HFSPLUS_I(inode).rsrc_inode; HFSPLUS_I 257 fs/hfsplus/inode.c atomic_inc(&HFSPLUS_I(inode).opencnt); HFSPLUS_I 266 fs/hfsplus/inode.c inode = HFSPLUS_I(inode).rsrc_inode; HFSPLUS_I 267 fs/hfsplus/inode.c if (atomic_dec_and_test(&HFSPLUS_I(inode).opencnt)) { HFSPLUS_I 314 fs/hfsplus/inode.c INIT_LIST_HEAD(&HFSPLUS_I(inode).open_dir_list); HFSPLUS_I 315 fs/hfsplus/inode.c mutex_init(&HFSPLUS_I(inode).extents_lock); HFSPLUS_I 316 fs/hfsplus/inode.c atomic_set(&HFSPLUS_I(inode).opencnt, 0); HFSPLUS_I 317 fs/hfsplus/inode.c HFSPLUS_I(inode).flags = 0; HFSPLUS_I 318 fs/hfsplus/inode.c memset(HFSPLUS_I(inode).first_extents, 0, sizeof(hfsplus_extent_rec)); HFSPLUS_I 319 fs/hfsplus/inode.c memset(HFSPLUS_I(inode).cached_extents, 0, sizeof(hfsplus_extent_rec)); HFSPLUS_I 320 fs/hfsplus/inode.c HFSPLUS_I(inode).alloc_blocks = 0; HFSPLUS_I 321 fs/hfsplus/inode.c HFSPLUS_I(inode).first_blocks = 0; HFSPLUS_I 322 fs/hfsplus/inode.c HFSPLUS_I(inode).cached_start = 0; HFSPLUS_I 323 fs/hfsplus/inode.c HFSPLUS_I(inode).cached_blocks = 0; HFSPLUS_I 324 fs/hfsplus/inode.c HFSPLUS_I(inode).phys_size = 0; HFSPLUS_I 325 fs/hfsplus/inode.c HFSPLUS_I(inode).fs_blocks = 0; HFSPLUS_I 326 fs/hfsplus/inode.c HFSPLUS_I(inode).rsrc_inode = NULL; HFSPLUS_I 337 fs/hfsplus/inode.c HFSPLUS_I(inode).clump_blocks = HFSPLUS_SB(sb).data_clump_blocks; HFSPLUS_I 342 fs/hfsplus/inode.c HFSPLUS_I(inode).clump_blocks = 1; HFSPLUS_I 380 fs/hfsplus/inode.c memcpy(&HFSPLUS_I(inode).first_extents, &fork->extents, HFSPLUS_I 384 fs/hfsplus/inode.c HFSPLUS_I(inode).first_blocks = count; HFSPLUS_I 385 fs/hfsplus/inode.c memset(HFSPLUS_I(inode).cached_extents, 0, sizeof(hfsplus_extent_rec)); HFSPLUS_I 386 fs/hfsplus/inode.c HFSPLUS_I(inode).cached_start = 0; HFSPLUS_I 387 fs/hfsplus/inode.c HFSPLUS_I(inode).cached_blocks = 0; HFSPLUS_I 389 fs/hfsplus/inode.c HFSPLUS_I(inode).alloc_blocks = be32_to_cpu(fork->total_blocks); HFSPLUS_I 390 fs/hfsplus/inode.c inode->i_size = HFSPLUS_I(inode).phys_size = be64_to_cpu(fork->total_size); HFSPLUS_I 391 fs/hfsplus/inode.c HFSPLUS_I(inode).fs_blocks = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; HFSPLUS_I 392 fs/hfsplus/inode.c inode_set_bytes(inode, HFSPLUS_I(inode).fs_blocks << sb->s_blocksize_bits); HFSPLUS_I 393 fs/hfsplus/inode.c HFSPLUS_I(inode).clump_blocks = be32_to_cpu(fork->clump_size) >> HFSPLUS_SB(sb).alloc_blksz_shift; HFSPLUS_I 394 fs/hfsplus/inode.c if (!HFSPLUS_I(inode).clump_blocks) HFSPLUS_I 395 fs/hfsplus/inode.c HFSPLUS_I(inode).clump_blocks = HFSPLUS_IS_RSRC(inode) ? HFSPLUS_SB(sb).rsrc_clump_blocks : HFSPLUS_I 401 fs/hfsplus/inode.c memcpy(&fork->extents, &HFSPLUS_I(inode).first_extents, HFSPLUS_I 404 fs/hfsplus/inode.c fork->total_blocks = cpu_to_be32(HFSPLUS_I(inode).alloc_blocks); HFSPLUS_I 415 fs/hfsplus/inode.c HFSPLUS_I(inode).dev = 0; HFSPLUS_I 429 fs/hfsplus/inode.c HFSPLUS_I(inode).create_date = folder->create_date; HFSPLUS_I 430 fs/hfsplus/inode.c HFSPLUS_I(inode).fs_blocks = 0; HFSPLUS_I 461 fs/hfsplus/inode.c HFSPLUS_I(inode).create_date = file->create_date; HFSPLUS_I 476 fs/hfsplus/inode.c main_inode = HFSPLUS_I(inode).rsrc_inode; HFSPLUS_I 520 fs/hfsplus/inode.c HFSPLUS_I(inode).dev = inode->i_nlink; HFSPLUS_I 522 fs/hfsplus/inode.c HFSPLUS_I(inode).dev = kdev_t_to_nr(inode->i_rdev); HFSPLUS_I 31 fs/hfsplus/ioctl.c if (HFSPLUS_I(inode).rootflags & HFSPLUS_FLG_IMMUTABLE) HFSPLUS_I 33 fs/hfsplus/ioctl.c if (HFSPLUS_I(inode).rootflags & HFSPLUS_FLG_APPEND) HFSPLUS_I 35 fs/hfsplus/ioctl.c if (HFSPLUS_I(inode).userflags & HFSPLUS_FLG_NODUMP) HFSPLUS_I 53 fs/hfsplus/ioctl.c HFSPLUS_I(inode).rootflags & (HFSPLUS_FLG_IMMUTABLE|HFSPLUS_FLG_APPEND)) { HFSPLUS_I 67 fs/hfsplus/ioctl.c HFSPLUS_I(inode).rootflags |= HFSPLUS_FLG_IMMUTABLE; HFSPLUS_I 70 fs/hfsplus/ioctl.c HFSPLUS_I(inode).rootflags &= ~HFSPLUS_FLG_IMMUTABLE; HFSPLUS_I 74 fs/hfsplus/ioctl.c HFSPLUS_I(inode).rootflags |= HFSPLUS_FLG_APPEND; HFSPLUS_I 77 fs/hfsplus/ioctl.c HFSPLUS_I(inode).rootflags &= ~HFSPLUS_FLG_APPEND; HFSPLUS_I 80 fs/hfsplus/ioctl.c HFSPLUS_I(inode).userflags |= HFSPLUS_FLG_NODUMP; HFSPLUS_I 82 fs/hfsplus/ioctl.c HFSPLUS_I(inode).userflags &= ~HFSPLUS_FLG_NODUMP; HFSPLUS_I 36 fs/hfsplus/super.c INIT_LIST_HEAD(&HFSPLUS_I(inode).open_dir_list); HFSPLUS_I 37 fs/hfsplus/super.c mutex_init(&HFSPLUS_I(inode).extents_lock); HFSPLUS_I 38 fs/hfsplus/super.c HFSPLUS_I(inode).flags = 0; HFSPLUS_I 39 fs/hfsplus/super.c HFSPLUS_I(inode).rsrc_inode = NULL; HFSPLUS_I 40 fs/hfsplus/super.c atomic_set(&HFSPLUS_I(inode).opencnt, 0); HFSPLUS_I 150 fs/hfsplus/super.c HFSPLUS_I(HFSPLUS_I(inode).rsrc_inode).rsrc_inode = NULL; HFSPLUS_I 151 fs/hfsplus/super.c iput(HFSPLUS_I(inode).rsrc_inode); HFSPLUS_I 467 fs/hfsplus/super.c kmem_cache_free(hfsplus_inode_cachep, &HFSPLUS_I(inode));