Lines Matching refs:eb
271 static int check_eb_bitmap(unsigned long *bitmap, struct extent_buffer *eb, in check_eb_bitmap() argument
280 bit1 = !!extent_buffer_test_bit(eb, 0, i); in check_eb_bitmap()
286 bit1 = !!extent_buffer_test_bit(eb, i / BITS_PER_BYTE, in check_eb_bitmap()
296 static int __test_eb_bitmaps(unsigned long *bitmap, struct extent_buffer *eb, in __test_eb_bitmaps() argument
304 memzero_extent_buffer(eb, 0, len); in __test_eb_bitmaps()
305 if (memcmp_extent_buffer(eb, bitmap, 0, len) != 0) { in __test_eb_bitmaps()
311 extent_buffer_bitmap_set(eb, 0, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps()
312 ret = check_eb_bitmap(bitmap, eb, len); in __test_eb_bitmaps()
319 extent_buffer_bitmap_clear(eb, 0, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps()
320 ret = check_eb_bitmap(bitmap, eb, len); in __test_eb_bitmaps()
331 extent_buffer_bitmap_set(eb, PAGE_SIZE - sizeof(long) / 2, 0, in __test_eb_bitmaps()
333 ret = check_eb_bitmap(bitmap, eb, len); in __test_eb_bitmaps()
343 extent_buffer_bitmap_set(eb, 0, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps()
344 extent_buffer_bitmap_clear(eb, PAGE_SIZE - sizeof(long) / 2, 0, in __test_eb_bitmaps()
346 ret = check_eb_bitmap(bitmap, eb, len); in __test_eb_bitmaps()
359 extent_buffer_bitmap_clear(eb, 0, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps()
365 extent_buffer_bitmap_set(eb, 0, i * 32 + j, 1); in __test_eb_bitmaps()
370 ret = check_eb_bitmap(bitmap, eb, len); in __test_eb_bitmaps()
384 struct extent_buffer *eb = NULL; in test_eb_bitmaps() local
409 eb = __alloc_dummy_extent_buffer(fs_info, 0, len); in test_eb_bitmaps()
410 if (!eb) { in test_eb_bitmaps()
416 ret = __test_eb_bitmaps(bitmap, eb, len); in test_eb_bitmaps()
421 free_extent_buffer(eb); in test_eb_bitmaps()
422 eb = __alloc_dummy_extent_buffer(fs_info, nodesize / 2, len); in test_eb_bitmaps()
423 if (!eb) { in test_eb_bitmaps()
429 ret = __test_eb_bitmaps(bitmap, eb, len); in test_eb_bitmaps()
431 free_extent_buffer(eb); in test_eb_bitmaps()