History

mm/mmu_notifier: convert user range->blockable to helper function

Use the mmu_notifier_range_blockable() helper function instead of directly dereferencing the range->blockable field. This is done to make it easier to change the mmu_notifier range field. This patch is the outcome of the following coccinelle patch: %<------------------------------------------------------------------- @@ identifier I1, FN; @@ FN(..., struct mmu_notifier_range *I1, ...) { <... -I1->blockable +mmu_notifier_range_blockable(I1) ...> } ------------------------------------------------------------------->% spatch --in-place --sp-file blockable.spatch --dir .

Jérôme Glisse committed 7 years ago

Commit dfcd6661 parent 4a83bfe8 files · +19 −17Browse files

Showing the changes to virt (1 of 8 files). Show all

Unified · Split

virt/kvm/kvm_main.c+2−1
@@ -391,7 +391,8 @@ static int kvm_mmu_notifier_invalidate_range_start(struct mmu_notifier *mn, · 390 unmodified lines
391391 spin_unlock(&kvm->mmu_lock);
392392
393393 ret = kvm_arch_mmu_notifier_invalidate_range(kvm, range->start,
394− range->end, range->blockable);
394+ range->end,
395+ mmu_notifier_range_blockable(range));
395396
396397 srcu_read_unlock(&kvm->srcu, idx);
397398

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t