mm/filemap.c: make a function static
Subsystems (2)
PATCH 1/1 mm/filemap.c: make a function static
This patch makes the needlessly global and EXPORT_SYMBOL'ed function sync_page_range_nolock static.
Signed-off-by Adrian Bunk <[email protected]>
---
diffstat output:
include/linux/writeback.h | 2 -- mm/filemap.c | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-)
This patch was already sent on:
- 12 Dec 2004
include/linux/writeback.h renamed from include/linux/writeback.h.old +0 -2
@@ -107,8 +107,6 @@int do_writepages (struct address_space *mapping,struct writeback_control *wbc);int sync_page_range (struct inode *inode,struct address_space *mapping,loff_t pos,size_t count); -int sync_page_range_nolock (struct inode *inode,struct address_space - *mapping,loff_t pos,size_t count);/* pdflush.c */ extern int nr_pdflush_threads;/* Global so it can be exported to sysctl
mm/filemap.c renamed from mm/filemap.c.old +3 -3
@@ -290,8 +290,9 @@* as it forces O_SYNC writers to different parts of the same file * to be serialised right until io completion. */ -int sync_page_range_nolock (struct inode *inode,struct address_space *mapping, -loff_t pos,size_t count) +static int sync_page_range_nolock (struct inode *inode, +struct address_space *mapping, +loff_t pos,size_t count) {pgoff_t start = pos >>PAGE_CACHE_SHIFT ;pgoff_t end = (pos + count -1 ) >>PAGE_CACHE_SHIFT ;
@@ -306,7 +307,6 @@ ret =wait_on_page_writeback_range (mapping, start, end);return ret; } -EXPORT_SYMBOL (sync_page_range_nolock);/** * filemap_fdatawait - walk the list of under-writeback pages of the given