Patch series "mm: mmap: add mmap trace point", v3. Create mmap trace file and add trace point of vm_unmapped_area(). This patch (of 2): In preparation for next patch remove inline of vm_unmapped_area and move code to mmap.c. There is no logical change. Also remove unmapped_area[_topdown] out of mm.h, there is no code calling to them.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -2530,26 +2530,7 @@ struct vm_unmapped_area_info { · 2529 unmodified lines | ||
| 2530 | 2530 | unsigned long align_offset; |
| 2531 | 2531 | }; |
| 2532 | 2532 | |
| 2533 | −extern unsigned long unmapped_area(struct vm_unmapped_area_info *info); | |
| 2534 | −extern unsigned long unmapped_area_topdown(struct vm_unmapped_area_info *info); | |
| 2535 | − | |
| 2536 | −/* | |
| 2537 | − * Search for an unmapped address range. | |
| 2538 | − * | |
| 2539 | − * We are looking for a range that: | |
| 2540 | − * - does not intersect with any VMA; | |
| 2541 | − * - is contained within the [low_limit, high_limit) interval; | |
| 2542 | − * - is at least the desired size. | |
| 2543 | − * - satisfies (begin_addr & align_mask) == (align_offset & align_mask) | |
| 2544 | − */ | |
| 2545 | −static inline unsigned long | |
| 2546 | −vm_unmapped_area(struct vm_unmapped_area_info *info) | |
| 2547 | −{ | |
| 2548 | − if (info->flags & VM_UNMAPPED_AREA_TOPDOWN) | |
| 2549 | − return unmapped_area_topdown(info); | |
| 2550 | − else | |
| 2551 | − return unmapped_area(info); | |
| 2552 | −} | |
| 2533 | +extern unsigned long vm_unmapped_area(struct vm_unmapped_area_info *info); | |
| 2553 | 2534 | |
| 2554 | 2535 | /* truncate.c */ |
| 2555 | 2536 | extern void truncate_inode_pages(struct address_space *, loff_t); |