Lines Matching refs:bitmap
18 * - bitmap marked during normal i/o
19 * - bitmap used to skip nondirty blocks during sync
21 * Additions to bitmap code, (C) 2003-2004 Paul Clements, SteelEye Technology:
22 * - persistent bitmap code
36 #include <linux/raid/bitmap.h>
335 /* an I/O failed, we can't clear the bitmap */
391 /* clear the bitmap if all writes complete successfully */
392 bitmap_endwrite(r1_bio->mddev->bitmap, r1_bio->sector,
777 struct bitmap *bitmap = mddev->bitmap;
877 /* array is degraded, we will not clear the bitmap
883 if (bitmap &&
884 atomic_read(&bitmap->behind_writes) < bitmap->max_write_behind &&
933 bitmap_startwrite(bitmap, bio->bi_sector, r1_bio->sectors,
1178 bitmap_end_sync(mddev->bitmap, s,
1517 /* flush any pending bitmap writes to disk before proceeding w/ I/O */
1518 if (bitmap_unplug(mddev->bitmap) != 0)
1519 printk("%s: bitmap file write failed!\n", mdname(mddev));
1675 printk("sync start - bitmap %p\n", mddev->bitmap);
1684 * sync on the 'current' bitmap chunk (there will
1689 bitmap_end_sync(mddev->bitmap, mddev->curr_resync,
1694 bitmap_close_sync(mddev->bitmap);
1699 if (mddev->bitmap == NULL &&
1709 if (!bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, 1) &&
1815 if (!bitmap_start_sync(mddev->bitmap, sector_nr,
2032 struct bitmap *bitmap = mddev->bitmap;
2036 while (bitmap && atomic_read(&bitmap->behind_writes) > 0) {