From: Johannes Weiner <hannes@saeurebad.de>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH -mmotm] remove unused vma_page_offset()
Date: Fri, 27 Jun 2008 13:12:30 +0200 [thread overview]
Message-ID: <874p7fyvvl.fsf@skyscraper.fehenstaub.lan> (raw)
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,
next reply other threads:[~2008-06-27 11:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-27 11:12 Johannes Weiner [this message]
2008-06-27 12:13 ` [PATCH -mmotm] remove unused vma_page_offset() Hugh Dickins
2008-06-27 12:37 ` Johannes Weiner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874p7fyvvl.fsf@skyscraper.fehenstaub.lan \
--to=hannes@saeurebad.de \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox