[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120613130531.dd67479c.yoshikawa.takuya@oss.ntt.co.jp>
Date: Wed, 13 Jun 2012 13:05:31 +0900
From: Takuya Yoshikawa <yoshikawa.takuya@....ntt.co.jp>
To: akpm@...ux-foundation.org
Cc: bhutchings@...arflare.com, grundler@...isc-linux.org,
arnd@...db.de, benh@...nel.crashing.org, avi@...hat.com,
mtosatti@...hat.com, linux-net-drivers@...arflare.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arch@...r.kernel.org, kvm@...r.kernel.org,
takuya.yoshikawa@...il.com
Subject: [PATCH 5/5] KVM: Replace test_and_set_bit_le() in
mark_page_dirty_in_slot() with set_bit_le()
From: Takuya Yoshikawa <yoshikawa.takuya@....ntt.co.jp>
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@....ntt.co.jp>
Cc: Avi Kivity <avi@...hat.com>
Cc: Marcelo Tosatti <mtosatti@...hat.com>
---
virt/kvm/kvm_main.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 02cb440..560c502 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1485,8 +1485,7 @@ void mark_page_dirty_in_slot(struct kvm *kvm, struct kvm_memory_slot *memslot,
if (memslot && memslot->dirty_bitmap) {
unsigned long rel_gfn = gfn - memslot->base_gfn;
- /* TODO: introduce set_bit_le() and use it */
- test_and_set_bit_le(rel_gfn, memslot->dirty_bitmap);
+ set_bit_le(rel_gfn, memslot->dirty_bitmap);
}
}
--
1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists