History

Merge branch 'vm-cleanups' (unmap_vma() interface cleanup)

This series sanitizes the interface to unmap_vma(). The crazy interface annoyed me no end when I was looking at unmap_single_vma(), which we can spend quite a lot of time in (especially with loads that have a lot of small fork/exec's: shell scripts etc). Moving the nr_accounted calculations to where they belong at least clarifies things a little. I hope to come back to look at the performance of this later, but if/when I get back to it I at least don't have to see the crazy interfaces any more. * vm-cleanups: vm: remove 'nr_accounted' calculations from the unmap_vmas() interfaces vm: simplify unmap_vmas() calling convention

Linus Torvalds committed 14 years ago

Commit dddbd542 parents 76e10d1 4f74d2c3 files · +25 −27Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/linux/mm.h+2−4
@@ -896,10 +896,8 @@ int zap_vma_ptes(struct vm_area_struct *vma, unsigned long address, · 895 unmodified lines
896896 unsigned long size);
897897 void zap_page_range(struct vm_area_struct *vma, unsigned long address,
898898 unsigned long size, struct zap_details *);
899−void unmap_vmas(struct mmu_gather *tlb,
900− struct vm_area_struct *start_vma, unsigned long start_addr,
901− unsigned long end_addr, unsigned long *nr_accounted,
902− struct zap_details *);
899+void unmap_vmas(struct mmu_gather *tlb, struct vm_area_struct *start_vma,
900+ unsigned long start, unsigned long end);
903901
904902 /**
905903 * mm_walk - callbacks for walk_page_range

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