Searched refs:AFFS_I (Results 1 – 6 of 6) sorted by relevance
27 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); in affs_file_open()28 atomic_inc(&AFFS_I(inode)->i_opencnt); in affs_file_open()36 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); in affs_file_release()38 if (atomic_dec_and_test(&AFFS_I(inode)->i_opencnt)) { in affs_file_release()40 if (inode->i_size != AFFS_I(inode)->mmu_private) in affs_file_release()57 if (!AFFS_I(inode)->i_lc) { in affs_grow_extcache()61 AFFS_I(inode)->i_lc = (u32 *)ptr; in affs_grow_extcache()62 AFFS_I(inode)->i_ac = (struct affs_ext_key *)(ptr + AFFS_CACHE_SIZE / 2); in affs_grow_extcache()65 lc_max = AFFS_LC_SIZE << AFFS_I(inode)->i_lc_shift; in affs_grow_extcache()67 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 …]
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()
66 static inline struct affs_inode_info *AFFS_I(struct inode *inode) in AFFS_I() function302 mutex_lock(&AFFS_I(inode)->i_link_lock); in affs_lock_link()307 mutex_unlock(&AFFS_I(inode)->i_link_lock); in affs_unlock_link()312 mutex_lock_nested(&AFFS_I(inode)->i_hash_lock, SINGLE_DEPTH_NESTING); in affs_lock_dir()317 mutex_unlock(&AFFS_I(inode)->i_hash_lock); in affs_unlock_dir()322 mutex_lock(&AFFS_I(inode)->i_ext_lock); in affs_lock_ext()327 mutex_unlock(&AFFS_I(inode)->i_ext_lock); in affs_unlock_ext()
420 u32 prot = AFFS_I(inode)->i_protect; in affs_mode_to_prot()469 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()