aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 3c97bdc74a85..c1b94054cbbe 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -869,7 +869,6 @@ void do_generic_mapping_read(struct address_space *mapping,
869 unsigned long index; 869 unsigned long index;
870 unsigned long offset; 870 unsigned long offset;
871 unsigned long last_index; 871 unsigned long last_index;
872 unsigned long next_index;
873 unsigned long prev_index; 872 unsigned long prev_index;
874 unsigned int prev_offset; 873 unsigned int prev_offset;
875 struct page *cached_page; 874 struct page *cached_page;
@@ -877,7 +876,6 @@ void do_generic_mapping_read(struct address_space *mapping,
877 876
878 cached_page = NULL; 877 cached_page = NULL;
879 index = *ppos >> PAGE_CACHE_SHIFT; 878 index = *ppos >> PAGE_CACHE_SHIFT;
880 next_index = index;
881 prev_index = ra->prev_pos >> PAGE_CACHE_SHIFT; 879 prev_index = ra->prev_pos >> PAGE_CACHE_SHIFT;
882 prev_offset = ra->prev_pos & (PAGE_CACHE_SIZE-1); 880 prev_offset = ra->prev_pos & (PAGE_CACHE_SIZE-1);
883 last_index = (*ppos + desc->count + PAGE_CACHE_SIZE-1) >> PAGE_CACHE_SHIFT; 881 last_index = (*ppos + desc->count + PAGE_CACHE_SIZE-1) >> PAGE_CACHE_SHIFT;
@@ -1250,7 +1248,6 @@ asmlinkage ssize_t sys_readahead(int fd, loff_t offset, size_t count)
1250} 1248}
1251 1249
1252#ifdef CONFIG_MMU 1250#ifdef CONFIG_MMU
1253static int FASTCALL(page_cache_read(struct file * file, unsigned long offset));
1254/** 1251/**
1255 * page_cache_read - adds requested page to the page cache if not already there 1252 * page_cache_read - adds requested page to the page cache if not already there
1256 * @file: file to read 1253 * @file: file to read