The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH -mmotm] remove unused vma_page_offset()
@ 2008-06-27 11:12 Johannes Weiner
  2008-06-27 12:13 ` Hugh Dickins
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Weiner @ 2008-06-27 11:12 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

Function has no callees, drop it.

Signed-off-by: Johannes Weiner <hannes@saeurebad.de>
---

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 690abf0..a7c7c18 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -48,17 +48,6 @@ static DEFINE_SPINLOCK(hugetlb_lock);
 
 /*
  * Convert the address within this vma to the page offset within
- * the mapping, in base page units.
- */
-static pgoff_t vma_page_offset(struct vm_area_struct *vma,
-				unsigned long address)
-{
-	return ((address - vma->vm_start) >> PAGE_SHIFT) +
-					(vma->vm_pgoff >> PAGE_SHIFT);
-}
-
-/*
- * Convert the address within this vma to the page offset within
  * the mapping, in pagecache page units; huge pages here.
  */
 static pgoff_t vma_pagecache_offset(struct hstate *h,

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-27 12:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-27 11:12 [PATCH -mmotm] remove unused vma_page_offset() Johannes Weiner
2008-06-27 12:13 ` Hugh Dickins
2008-06-27 12:37   ` Johannes Weiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox