diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2011-03-23 19:42:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-23 22:46:16 -0400 |
commit | cd7e48c5de223f400bbfe52dc531a70f7b668e8c (patch) | |
tree | fa231c42d2e79f5e959ca1ccc6b6087337980be4 /virt | |
parent | c56530055a7c16eed03d31bedd0a49976923f8cf (diff) |
kvm: use little-endian bitops
As a preparation for removing ext2 non-atomic bit operations from
asm/bitops.h. This converts ext2 non-atomic bit operations to
little-endian bit operations.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 5e6dd4a6cbc5..7bee6dc8cdb2 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -1438,7 +1438,7 @@ void mark_page_dirty_in_slot(struct kvm *kvm, struct kvm_memory_slot *memslot, | |||
1438 | if (memslot && memslot->dirty_bitmap) { | 1438 | if (memslot && memslot->dirty_bitmap) { |
1439 | unsigned long rel_gfn = gfn - memslot->base_gfn; | 1439 | unsigned long rel_gfn = gfn - memslot->base_gfn; |
1440 | 1440 | ||
1441 | ext2_set_bit(rel_gfn, memslot->dirty_bitmap); | 1441 | __set_bit_le(rel_gfn, memslot->dirty_bitmap); |
1442 | } | 1442 | } |
1443 | } | 1443 | } |
1444 | 1444 | ||