Lines Matching refs:bitmap
322 static int check_eb_bitmap(unsigned long *bitmap, struct extent_buffer *eb, in check_eb_bitmap() argument
330 bit = !!test_bit(i, bitmap); in check_eb_bitmap()
347 static int __test_eb_bitmaps(unsigned long *bitmap, struct extent_buffer *eb, in __test_eb_bitmaps() argument
354 memset(bitmap, 0, len); in __test_eb_bitmaps()
356 if (memcmp_extent_buffer(eb, bitmap, 0, len) != 0) { in __test_eb_bitmaps()
361 bitmap_set(bitmap, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps()
363 ret = check_eb_bitmap(bitmap, eb, len); in __test_eb_bitmaps()
369 bitmap_clear(bitmap, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps()
371 ret = check_eb_bitmap(bitmap, eb, len); in __test_eb_bitmaps()
379 bitmap_set(bitmap, in __test_eb_bitmaps()
384 ret = check_eb_bitmap(bitmap, eb, len); in __test_eb_bitmaps()
390 bitmap_set(bitmap, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps()
391 bitmap_clear(bitmap, in __test_eb_bitmaps()
397 ret = check_eb_bitmap(bitmap, eb, len); in __test_eb_bitmaps()
409 bitmap_clear(bitmap, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps()
415 bitmap_set(bitmap, i * 32 + j, 1); in __test_eb_bitmaps()
421 ret = check_eb_bitmap(bitmap, eb, len); in __test_eb_bitmaps()
433 unsigned long *bitmap = NULL; in test_eb_bitmaps() local
445 bitmap = kmalloc(nodesize, GFP_KERNEL); in test_eb_bitmaps()
446 if (!bitmap) { in test_eb_bitmaps()
459 ret = __test_eb_bitmaps(bitmap, eb, nodesize); in test_eb_bitmaps()
476 ret = __test_eb_bitmaps(bitmap, eb, nodesize); in test_eb_bitmaps()
479 kfree(bitmap); in test_eb_bitmaps()