diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2013-04-23 21:42:41 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-04-23 21:42:41 -0400 |
commit | 3f810b6c4a850db1b9989cd569ab88b90cd24996 (patch) | |
tree | 4a0bfef086c9fef610191b1f71d455216422b40f /drivers/md | |
parent | 3ea8929da3e61b54d4adcab1bf9a0034648d578e (diff) |
md: use set_bit_le and clear_bit_le
The value returned by test_and_set_bit_le() drivers/md/bitmap.c is not used.
So just use set_bit_le(). The same goes for test_and_clear_bit_le().
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 4fd9d6aeff6a..5a2c75499824 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c | |||
@@ -846,7 +846,7 @@ static void bitmap_file_set_bit(struct bitmap *bitmap, sector_t block) | |||
846 | if (test_bit(BITMAP_HOSTENDIAN, &bitmap->flags)) | 846 | if (test_bit(BITMAP_HOSTENDIAN, &bitmap->flags)) |
847 | set_bit(bit, kaddr); | 847 | set_bit(bit, kaddr); |
848 | else | 848 | else |
849 | test_and_set_bit_le(bit, kaddr); | 849 | set_bit_le(bit, kaddr); |
850 | kunmap_atomic(kaddr); | 850 | kunmap_atomic(kaddr); |
851 | pr_debug("set file bit %lu page %lu\n", bit, page->index); | 851 | pr_debug("set file bit %lu page %lu\n", bit, page->index); |
852 | /* record page number so it gets flushed to disk when unplug occurs */ | 852 | /* record page number so it gets flushed to disk when unplug occurs */ |
@@ -868,7 +868,7 @@ static void bitmap_file_clear_bit(struct bitmap *bitmap, sector_t block) | |||
868 | if (test_bit(BITMAP_HOSTENDIAN, &bitmap->flags)) | 868 | if (test_bit(BITMAP_HOSTENDIAN, &bitmap->flags)) |
869 | clear_bit(bit, paddr); | 869 | clear_bit(bit, paddr); |
870 | else | 870 | else |
871 | test_and_clear_bit_le(bit, paddr); | 871 | clear_bit_le(bit, paddr); |
872 | kunmap_atomic(paddr); | 872 | kunmap_atomic(paddr); |
873 | if (!test_page_attr(bitmap, page->index, BITMAP_PAGE_NEEDWRITE)) { | 873 | if (!test_page_attr(bitmap, page->index, BITMAP_PAGE_NEEDWRITE)) { |
874 | set_page_attr(bitmap, page->index, BITMAP_PAGE_PENDING); | 874 | set_page_attr(bitmap, page->index, BITMAP_PAGE_PENDING); |