Lines Matching refs:count
108 unsigned count; in sysv_free_inode() local
123 count = fs16_to_cpu(sbi, *sbi->s_sb_fic_count); in sysv_free_inode()
124 if (count < sbi->s_fic_size) { in sysv_free_inode()
125 *sv_sb_fic_inode(sb,count++) = cpu_to_fs16(sbi, ino); in sysv_free_inode()
126 *sbi->s_sb_fic_count = cpu_to_fs16(sbi, count); in sysv_free_inode()
142 unsigned count; in sysv_new_inode() local
152 count = fs16_to_cpu(sbi, *sbi->s_sb_fic_count); in sysv_new_inode()
153 if (count == 0 || (*sv_sb_fic_inode(sb,count-1) == 0)) { in sysv_new_inode()
154 count = refill_free_cache(sb); in sysv_new_inode()
155 if (count == 0) { in sysv_new_inode()
162 ino = *sv_sb_fic_inode(sb,--count); in sysv_new_inode()
163 *sbi->s_sb_fic_count = cpu_to_fs16(sbi, count); in sysv_new_inode()
187 int ino, count, sb_count; in sysv_count_free_inodes() local
197 count = 0; in sysv_count_free_inodes()
204 count++; in sysv_count_free_inodes()
214 if (count != sb_count) in sysv_count_free_inodes()
218 return count; in sysv_count_free_inodes()
223 sb_count, count); in sysv_count_free_inodes()
225 *sbi->s_sb_total_free_inodes = cpu_to_fs16(SYSV_SB(sb), count); in sysv_count_free_inodes()
233 count = sb_count; in sysv_count_free_inodes()