public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] mm/filemap.c: make sync_page_range_nolock static
@ 2005-03-06 14:35 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-03-06 14:35 UTC (permalink / raw)
  To: linux-kernel

sync_page_range_nolock isn't used outside of this file.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 include/linux/writeback.h |    2 --
 mm/filemap.c              |    6 +++---
 2 files changed, 3 insertions(+), 5 deletions(-)

--- linux-2.6.11-mm1-full/include/linux/writeback.h.old	2005-03-04 15:40:45.000000000 +0100
+++ linux-2.6.11-mm1-full/include/linux/writeback.h	2005-03-04 15:40:55.000000000 +0100
@@ -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
--- linux-2.6.11-mm1-full/mm/filemap.c.old	2005-03-04 15:41:05.000000000 +0100
+++ linux-2.6.11-mm1-full/mm/filemap.c	2005-03-04 15:41:29.000000000 +0100
@@ -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


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

* [2.6 patch] mm/filemap.c: make sync_page_range_nolock static
@ 2005-03-24  3:09 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-03-24  3:09 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

sync_page_range_nolock isn't used outside of this file.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

This patch was already sent on:
- 6 Mar 2005

 include/linux/writeback.h |    2 --
 mm/filemap.c              |    6 +++---
 2 files changed, 3 insertions(+), 5 deletions(-)

--- linux-2.6.11-mm1-full/include/linux/writeback.h.old	2005-03-04 15:40:45.000000000 +0100
+++ linux-2.6.11-mm1-full/include/linux/writeback.h	2005-03-04 15:40:55.000000000 +0100
@@ -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
--- linux-2.6.11-mm1-full/mm/filemap.c.old	2005-03-04 15:41:05.000000000 +0100
+++ linux-2.6.11-mm1-full/mm/filemap.c	2005-03-04 15:41:29.000000000 +0100
@@ -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



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

end of thread, other threads:[~2005-03-24  3:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-06 14:35 [2.6 patch] mm/filemap.c: make sync_page_range_nolock static Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2005-03-24  3:09 Adrian Bunk

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