Lines Matching refs:count
48 unsigned count; in sysv_free_block() local
65 count = fs16_to_cpu(sbi, *sbi->s_bcache_count); in sysv_free_block()
67 if (count > sbi->s_flc_size) { in sysv_free_block()
76 if (count == sbi->s_flc_size || count == 0) { in sysv_free_block()
85 *(__fs16*)bh->b_data = cpu_to_fs16(sbi, count); in sysv_free_block()
86 memcpy(get_chunk(sb,bh), blocks, count * sizeof(sysv_zone_t)); in sysv_free_block()
90 count = 0; in sysv_free_block()
92 sbi->s_bcache[count++] = nr; in sysv_free_block()
94 *sbi->s_bcache_count = cpu_to_fs16(sbi, count); in sysv_free_block()
106 unsigned count; in sysv_new_block() local
109 count = fs16_to_cpu(sbi, *sbi->s_bcache_count); in sysv_new_block()
111 if (count == 0) /* Applies only to Coherent FS */ in sysv_new_block()
113 nr = sbi->s_bcache[--count]; in sysv_new_block()
119 *sbi->s_bcache_count = cpu_to_fs16(sbi, count); in sysv_new_block()
127 if (count == 0) { /* the last block continues the free list */ in sysv_new_block()
128 unsigned count; in sysv_new_block() local
137 count = fs16_to_cpu(sbi, *(__fs16*)bh->b_data); in sysv_new_block()
138 if (count > sbi->s_flc_size) { in sysv_new_block()
143 *sbi->s_bcache_count = cpu_to_fs16(sbi, count); in sysv_new_block()
145 count * sizeof(sysv_zone_t)); in sysv_new_block()
163 int count; in sysv_count_free_blocks() local
184 count = 0; in sysv_count_free_blocks()
193 count++; in sysv_count_free_blocks()
212 if (count != sb_count) in sysv_count_free_blocks()
216 return count; in sysv_count_free_blocks()
230 count = sb_count; in sysv_count_free_blocks()
234 "correcting to %d\n", sb_count, count); in sysv_count_free_blocks()
236 *sbi->s_free_blocks = cpu_to_fs32(sbi, count); in sysv_count_free_blocks()