Lines Matching refs:ino
55 sysv_raw_inode(struct super_block *sb, unsigned ino, struct buffer_head **bh) in sysv_raw_inode() argument
61 block += (ino-1) >> sbi->s_inodes_per_block_bits; in sysv_raw_inode()
66 return res + ((ino-1) & sbi->s_inodes_per_block_1); in sysv_raw_inode()
74 int i = 0, ino; in refill_free_cache() local
76 ino = SYSV_ROOT_INO+1; in refill_free_cache()
77 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache()
80 while (ino <= sbi->s_ninodes) { in refill_free_cache()
82 *sv_sb_fic_inode(sb,i++) = cpu_to_fs16(SYSV_SB(sb), ino); in refill_free_cache()
86 if ((ino++ & sbi->s_inodes_per_block_1) == 0) { in refill_free_cache()
88 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache()
103 unsigned int ino; in sysv_free_inode() local
109 ino = inode->i_ino; in sysv_free_inode()
110 if (ino <= SYSV_ROOT_INO || ino > sbi->s_ninodes) { in sysv_free_inode()
114 raw_inode = sysv_raw_inode(sb, ino, &bh); in sysv_free_inode()
124 *sv_sb_fic_inode(sb,count++) = cpu_to_fs16(sbi, ino); in sysv_free_inode()
140 sysv_ino_t ino; in sysv_new_inode() local
158 ino = *sv_sb_fic_inode(sb,--count); in sysv_new_inode()
171 inode->i_ino = fs16_to_cpu(sbi, ino); in sysv_new_inode()
192 int ino, count, sb_count; in sysv_count_free_inodes() local
203 ino = SYSV_ROOT_INO+1; in sysv_count_free_inodes()
204 raw_inode = sysv_raw_inode(sb, ino, &bh); in sysv_count_free_inodes()
207 while (ino <= sbi->s_ninodes) { in sysv_count_free_inodes()
210 if ((ino++ & sbi->s_inodes_per_block_1) == 0) { in sysv_count_free_inodes()
212 raw_inode = sysv_raw_inode(sb, ino, &bh); in sysv_count_free_inodes()