aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>2012-10-04 20:13:12 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-05 14:04:56 -0400
commitb74ca3b3fd0fac08167ff96287cece56e8ca6f4d (patch)
tree08d0ec23893a33feda18fccea521ac5a07bf3a9c /virt/kvm
parent0ef8fa6962a01e72125b1c640045e8d56be8c43a (diff)
kvm: replace test_and_set_bit_le() in mark_page_dirty_in_slot() with set_bit_le()
Now that we have defined generic set_bit_le() we do not need to use test_and_set_bit_le() for atomically setting a bit. Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> 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/kvm')
-rw-r--r--virt/kvm/kvm_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index c353b4599cec..e59bb63cb089 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1568,8 +1568,7 @@ void mark_page_dirty_in_slot(struct kvm *kvm, struct kvm_memory_slot *memslot,
1568 if (memslot && memslot->dirty_bitmap) { 1568 if (memslot && memslot->dirty_bitmap) {
1569 unsigned long rel_gfn = gfn - memslot->base_gfn; 1569 unsigned long rel_gfn = gfn - memslot->base_gfn;
1570 1570
1571 /* TODO: introduce set_bit_le() and use it */ 1571 set_bit_le(rel_gfn, memslot->dirty_bitmap);
1572 test_and_set_bit_le(rel_gfn, memslot->dirty_bitmap);
1573 } 1572 }
1574} 1573}
1575 1574