[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1476773771-11470-4-git-send-email-hch@lst.de>
Date: Tue, 18 Oct 2016 08:56:08 +0200
From: Christoph Hellwig <hch@....de>
To: akpm@...ux-foundation.org
Cc: joelaf@...gle.com, jszhang@...vell.com, chris@...is-wilson.co.uk,
joaodias@...gle.com, linux-mm@...ck.org,
linux-rt-users@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 3/6] mm: remove free_unmap_vmap_area_noflush
Just inline it into the only caller.
Signed-off-by: Christoph Hellwig <hch@....de>
---
mm/vmalloc.c | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 9830514..8cedfa0 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -697,22 +697,13 @@ static void free_vmap_area_noflush(struct vmap_area *va)
}
/*
- * Free and unmap a vmap area, caller ensuring flush_cache_vunmap had been
- * called for the correct range previously.
- */
-static void free_unmap_vmap_area_noflush(struct vmap_area *va)
-{
- unmap_vmap_area(va);
- free_vmap_area_noflush(va);
-}
-
-/*
* Free and unmap a vmap area
*/
static void free_unmap_vmap_area(struct vmap_area *va)
{
flush_cache_vunmap(va->va_start, va->va_end);
- free_unmap_vmap_area_noflush(va);
+ unmap_vmap_area(va);
+ free_vmap_area_noflush(va);
}
static struct vmap_area *find_vmap_area(unsigned long addr)
--
2.1.4
Powered by blists - more mailing lists