diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-08-05 12:11:08 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-08-09 17:49:58 +0300 |
commit | 8f946da73aaa1c3f609bd14d1193f39afa6830c7 (patch) | |
tree | a512aa350aad7c2475b2cfd583cfd4fdcb87d058 | |
parent | 57b76bdb20ecb05c87f4e12b7ced66bc03a976c3 (diff) | |
download | linux-8f946da73aaa1c3f609bd14d1193f39afa6830c7.tar.xz |
kvm: remove unnecessary PageReserved check
The same check is already done in kvm_is_reserved_pfn.
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | 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 4feceaa03fb1..c6a91b044d8d 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1855,8 +1855,7 @@ void kvm_set_pfn_dirty(kvm_pfn_t pfn) if (!kvm_is_reserved_pfn(pfn)) { struct page *page = pfn_to_page(pfn); - if (!PageReserved(page)) - SetPageDirty(page); + SetPageDirty(page); } } EXPORT_SYMBOL_GPL(kvm_set_pfn_dirty); |