md: use proper little-endian bitops
PATCH 1/1 md: use proper little-endian bitops
Using __test_and_{set,clear}_bit_le() with ignoring its return value can be replaced with __{set,clear}_bit_le().
--- drivers/md/bitmap.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/md/bitmap.c +2 -2
@@ -856,7 +856,7 @@ static void bitmap_file_set_bit(struct bitmap *bitmap, sector_t block)if (bitmap->flags &BITMAP_HOSTENDIAN )set_bit (bit, kaddr);else -__test_and_set_bit_le (bit, kaddr); +__set_bit_le (bit, kaddr);kunmap_atomic (kaddr,KM_USER0 );PRINTK ("set file bit %lu page %lu\n" , bit, page->index); }
@@ -1228,7 +1228,7 @@ void bitmap_daemon_work(mddev_t *mddev)clear_bit (file_page_offset (bitmap, j), paddr); else -__test_and_clear_bit_le (file_page_offset (bitmap ,j ), +__clear_bit_le (file_page_offset (bitmap ,j ),paddr );kunmap_atomic (paddr,KM_USER0 ); }else
Signature · 1 line
1.7.4.4