Lines Matching defs:chunk
9 * - changes to allow various bitmap chunk sizes
669 * Use one bit per "chunk" (block set). We do the disk I/O on the bitmap
673 static inline unsigned long file_page_index(struct bitmap *bitmap, unsigned long chunk)
676 chunk += sizeof(bitmap_super_t) << 3;
677 return chunk >> PAGE_BIT_SHIFT;
681 static inline unsigned long file_page_offset(struct bitmap *bitmap, unsigned long chunk)
684 chunk += sizeof(bitmap_super_t) << 3;
685 return chunk & (PAGE_BITS - 1);
696 unsigned long chunk)
700 if (file_page_index(bitmap, chunk) >= bitmap->file_pages)
702 return bitmap->filemap[file_page_index(bitmap, chunk)
835 unsigned long chunk = block >> CHUNK_BLOCK_SHIFT(bitmap);
840 log->type->mark_region(log, chunk);
843 page = filemap_get_page(bitmap, chunk);
846 bit = file_page_offset(bitmap, chunk);
1098 sector_t chunk = offset >> CHUNK_BLOCK_SHIFT(bitmap);
1099 unsigned long page = chunk >> PAGE_COUNTER_SHIFT;
1270 sector_t chunk = offset >> CHUNK_BLOCK_SHIFT(bitmap);
1271 unsigned long page = chunk >> PAGE_COUNTER_SHIFT;
1272 unsigned long pageoff = (chunk & PAGE_COUNTER_MASK) << COUNTER_BYTE_SHIFT;
1560 /* For each chunk covered by any of these sectors, set the
1587 unsigned long chunk;
1589 for (chunk = s; chunk <= e; chunk++) {
1590 sector_t sec = (sector_t)chunk << CHUNK_BLOCK_SHIFT(bitmap);