Lines Matching defs:bitmap
2 * linux/fs/hfs/bitmap.c
10 * This file contains the code to modify the volume bitmap:
29 static u32 hfs_find_set_zero_bits(__be32 *bitmap, u32 size, u32 offset, u32 *max)
40 curr = bitmap + (offset / 32);
41 end = bitmap + ((size + 31) / 32);
70 start = (curr - bitmap) * 32 + i;
108 *max = (curr - bitmap) * 32 + i - start;
116 * Search for 'num_bits' consecutive cleared bits in the bitmap blocks of
127 * returned range. If the bitmap is fragmented, this will be less than
141 void *bitmap;
149 bitmap = HFS_SB(sb)->bitmap;
151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits);
154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits);
174 * Clear the requested bits in the volume bitmap of the hfs filesystem
185 * -2: One or more of the bits are out of range of the bitmap.
189 * Starting with bit number 'start', 'count' bits in the volume bitmap
190 * are cleared. The affected bitmap blocks are marked "dirty", the free
209 /* bitmap is always on a 32-bit boundary */
210 curr = HFS_SB(sb)->bitmap + (start / 32);