Searched refs:AFFS_I (Results 1 – 6 of 6) sorted by relevance
25 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); in affs_file_open()26 atomic_inc(&AFFS_I(inode)->i_opencnt); in affs_file_open()34 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); in affs_file_release()36 if (atomic_dec_and_test(&AFFS_I(inode)->i_opencnt)) { in affs_file_release()38 if (inode->i_size != AFFS_I(inode)->mmu_private) in affs_file_release()55 if (!AFFS_I(inode)->i_lc) { in affs_grow_extcache()59 AFFS_I(inode)->i_lc = (u32 *)ptr; in affs_grow_extcache()60 AFFS_I(inode)->i_ac = (struct affs_ext_key *)(ptr + AFFS_CACHE_SIZE / 2); in affs_grow_extcache()63 lc_max = AFFS_LC_SIZE << AFFS_I(inode)->i_lc_shift; in affs_grow_extcache()65 if (AFFS_I(inode)->i_extcnt > lc_max) { in affs_grow_extcache()[all …]
56 AFFS_I(inode)->i_extcnt = 1; in affs_iget()57 AFFS_I(inode)->i_ext_last = ~1; in affs_iget()58 AFFS_I(inode)->i_protect = prot; in affs_iget()59 atomic_set(&AFFS_I(inode)->i_opencnt, 0); in affs_iget()60 AFFS_I(inode)->i_blkcnt = 0; in affs_iget()61 AFFS_I(inode)->i_lc = NULL; in affs_iget()62 AFFS_I(inode)->i_lc_size = 0; in affs_iget()63 AFFS_I(inode)->i_lc_shift = 0; in affs_iget()64 AFFS_I(inode)->i_lc_mask = 0; in affs_iget()65 AFFS_I(inode)->i_ac = NULL; in affs_iget()[all …]
66 static inline struct affs_inode_info *AFFS_I(struct inode *inode) in AFFS_I() function296 down(&AFFS_I(inode)->i_link_lock); in affs_lock_link()301 up(&AFFS_I(inode)->i_link_lock); in affs_unlock_link()306 down(&AFFS_I(inode)->i_hash_lock); in affs_lock_dir()311 up(&AFFS_I(inode)->i_hash_lock); in affs_unlock_dir()316 down(&AFFS_I(inode)->i_ext_lock); in affs_lock_ext()321 up(&AFFS_I(inode)->i_ext_lock); in affs_unlock_ext()
130 if (AFFS_I(inode)->i_pa_cnt) { in affs_alloc_block()131 pr_debug("%d\n", AFFS_I(inode)->i_lastalloc+1); in affs_alloc_block()132 AFFS_I(inode)->i_pa_cnt--; in affs_alloc_block()133 return ++AFFS_I(inode)->i_lastalloc; in affs_alloc_block()209 AFFS_I(inode)->i_lastalloc = blk; in affs_alloc_block()215 AFFS_I(inode)->i_pa_cnt++; in affs_alloc_block()218 bm->bm_free -= AFFS_I(inode)->i_pa_cnt + 1; in affs_alloc_block()
420 u32 prot = AFFS_I(inode)->i_protect; in affs_mode_to_prot()442 AFFS_I(inode)->i_protect = prot; in affs_mode_to_prot()
117 kmem_cache_free(affs_inode_cachep, AFFS_I(inode)); in affs_free_inode()