From: Adrian Bunk <bunk@stusta.de>
To: linux-kernel@vger.kernel.org
Subject: [2.6 patch] mm/filemap.c: make a function static
Date: Sun, 12 Dec 2004 20:22:18 +0100 [thread overview]
Message-ID: <20041212192217.GY22324@stusta.de> (raw)
The patch below makes the needlessly global and EXPORT_SYMBOL'ed
function sync_page_range_nolock static.
diffstat output:
include/linux/writeback.h | 2 --
mm/filemap.c | 6 +++---
2 files changed, 3 insertions(+), 5 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.10-rc2-mm4-full/include/linux/writeback.h.old 2004-12-12 03:49:31.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/include/linux/writeback.h 2004-12-12 03:49:38.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.10-rc2-mm4-full/mm/filemap.c.old 2004-12-12 03:48:06.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/mm/filemap.c 2004-12-12 03:49:58.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
next reply other threads:[~2004-12-12 19:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-12 19:22 Adrian Bunk [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-01-17 8:13 [2.6 patch] mm/filemap.c: make a function static Adrian Bunk
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=20041212192217.GY22324@stusta.de \
--to=bunk@stusta.de \
--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