aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiaohe Lin <[email protected]>2021-09-02 14:54:12 -0700
committerLinus Torvalds <[email protected]>2021-09-03 09:58:11 -0700
commitcdd89d4cb6507f123f6ecbfe51050e9a9844c2ab (patch)
tree39ee3da0f70f476af40a7da9f0917621472050f4
parentb6378fc8b477921e62fd5763efeec676ff8e7a16 (diff)
shmem: remove unneeded function forward declaration
The forward declaration for shmem_should_replace_page() and shmem_replace_page() is unnecessary. Remove them. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Miaohe Lin <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/shmem.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index c69adf9a2db3..c4087f70c86c 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -135,9 +135,6 @@ static unsigned long shmem_default_max_inodes(void)
}
#endif
-static bool shmem_should_replace_page(struct page *page, gfp_t gfp);
-static int shmem_replace_page(struct page **pagep, gfp_t gfp,
- struct shmem_inode_info *info, pgoff_t index);
static int shmem_swapin_page(struct inode *inode, pgoff_t index,
struct page **pagep, enum sgp_type sgp,
gfp_t gfp, struct vm_area_struct *vma,