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>
This commit is contained in:
parent
57b76bdb20
commit
8f946da73a
@ -1855,7 +1855,6 @@ void kvm_set_pfn_dirty(kvm_pfn_t pfn)
|
|||||||
if (!kvm_is_reserved_pfn(pfn)) {
|
if (!kvm_is_reserved_pfn(pfn)) {
|
||||||
struct page *page = pfn_to_page(pfn);
|
struct page *page = pfn_to_page(pfn);
|
||||||
|
|
||||||
if (!PageReserved(page))
|
|
||||||
SetPageDirty(page);
|
SetPageDirty(page);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user