Lines Matching refs:entry_num
37 This function changes the current entry in the bitmap. It just changes the entry_num variable in block_bitmap_info
43 unsigned long entry_num;
55 entry_num=atol (buffer);
58 if (entry_num >= file_system_info.super_block.s_blocks_per_group) { /* Check if it is a valid entry number */
66 block_bitmap_info.entry_num=entry_num; /* If it is, just change entry_num and */
88 sprintf (buffer,"entry %ld",block_bitmap_info.entry_num+entry_offset);
104 sprintf (buffer,"entry %ld",block_bitmap_info.entry_num-entry_offset);
119 long entry_num,num=1;
128 entry_num=block_bitmap_info.entry_num;
130 if (num > file_system_info.super_block.s_blocks_per_group-entry_num) {
136 allocate_block (entry_num); /* for each block */
137 num--;entry_num++;
148 long entry_num,num=1;
157 entry_num=block_bitmap_info.entry_num;
158 if (num > file_system_info.super_block.s_blocks_per_group-entry_num) {
164 deallocate_block (entry_num);
165 num--;entry_num++;
172 void allocate_block (long entry_num)
180 byte_offset=entry_num/8; /* Find the correct byte - entry_num/8 */
181 /* The position inside the byte is entry_num %8 */
182 for (j=0;j<entry_num%8;j++)
187 void deallocate_block (long entry_num)
195 byte_offset=entry_num/8;
196 for (j=0;j<entry_num%8;j++)
208 The current position (as known from block_bitmap_info.entry_num) is highlighted.
215 unsigned long block_num,entry_num;
221 for (i=0,entry_num=0;i<file_system_info.super_block.s_blocks_per_group/8;i++,ptr++) {
223 if (entry_num==block_bitmap_info.entry_num) { /* Highlight the current entry */
233 if (entry_num==block_bitmap_info.entry_num)
236 entry_num++; /* Pass to the next entry */
253 block_num=block_bitmap_info.entry_num+block_bitmap_info.group_num*file_system_info.super_block.s_blocks_per_group;
257 ptr=type_data.u.buffer+block_bitmap_info.entry_num/8;
259 for (i=block_bitmap_info.entry_num % 8;i>0;i--)