History

mmap: remove inline of vm_unmapped_area

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.

Jaewon Kim committed 6 years ago

Commit baceaf11 parent abd69b92 files · +19 −22Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/mm.h+1−20
@@ -2530,26 +2530,7 @@ struct vm_unmapped_area_info { · 2529 unmodified lines
2530 unsigned long align_offset;2530 unsigned long align_offset;
2531};2531};
2532 2532
2533extern unsigned long unmapped_area(struct vm_unmapped_area_info *info);2533extern unsigned long vm_unmapped_area(struct vm_unmapped_area_info *info);
2534extern 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 */
2545static inline unsigned long
2546vm_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}
2553 2534
2554/* truncate.c */2535/* truncate.c */
2555extern void truncate_inode_pages(struct address_space *, loff_t);2536extern void truncate_inode_pages(struct address_space *, loff_t);