>From 10f50e53ae706d61591b3247bc494b47a79f2b69 Mon Sep 17 00:00:00 2001 From: John Stultz Date: Wed, 20 Mar 2013 18:24:56 -0700 Subject: [PATCH] vrange: Make various vrange.c local functions static Make a number of local functions in vrange.c static. Signed-off-by: John Stultz --- mm/vrange.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mm/vrange.c b/mm/vrange.c index c0c5d50..d07884d 100644 --- a/mm/vrange.c +++ b/mm/vrange.c @@ -45,7 +45,7 @@ static inline void __set_vrange(struct vrange *range, range->node.last = end_idx; } -void lru_add_vrange(struct vrange *vrange) +static void lru_add_vrange(struct vrange *vrange) { spin_lock(&lru_lock); WARN_ON(!list_empty(&vrange->lru)); @@ -53,7 +53,7 @@ void lru_add_vrange(struct vrange *vrange) spin_unlock(&lru_lock); } -void lru_remove_vrange(struct vrange *vrange) +static void lru_remove_vrange(struct vrange *vrange) { spin_lock(&lru_lock); if (!list_empty(&vrange->lru)) @@ -130,7 +130,7 @@ static inline void range_resize(struct rb_root *root, __add_range(range, root, mm); } -int add_vrange(struct mm_struct *mm, +static int add_vrange(struct mm_struct *mm, unsigned long start, unsigned long end) { struct rb_root *root; @@ -172,7 +172,7 @@ out: return 0; } -int remove_vrange(struct mm_struct *mm, +static int remove_vrange(struct mm_struct *mm, unsigned long start, unsigned long end) { struct rb_root *root; @@ -292,7 +292,7 @@ out: return ret; } -bool __vrange_address(struct mm_struct *mm, +static bool __vrange_address(struct mm_struct *mm, unsigned long start, unsigned long end) { struct rb_root *root = &mm->v_rb; @@ -387,7 +387,7 @@ static void __vrange_purge(struct mm_struct *mm, } } -int try_to_discard_one(struct page *page, struct vm_area_struct *vma, +static int try_to_discard_one(struct page *page, struct vm_area_struct *vma, unsigned long address) { struct mm_struct *mm = vma->vm_mm; @@ -602,7 +602,7 @@ static int vrange_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, } -unsigned int discard_vma_pages(struct zone *zone, struct mm_struct *mm, +static unsigned int discard_vma_pages(struct zone *zone, struct mm_struct *mm, struct vm_area_struct *vma, unsigned long start, unsigned long end, unsigned int nr_to_discard) { @@ -669,7 +669,7 @@ out: * Get next victim vrange from LRU and hold a vrange refcount * and vrange->mm's refcount. */ -struct vrange *get_victim_vrange(void) +static struct vrange *get_victim_vrange(void) { struct mm_struct *mm; struct vrange *vrange = NULL; @@ -711,7 +711,7 @@ struct vrange *get_victim_vrange(void) return vrange; } -void put_victim_range(struct vrange *vrange) +static void put_victim_range(struct vrange *vrange) { put_vrange(vrange); mmdrop(vrange->mm); -- 1.7.10.4