From: Adrian Bunk <bunk@stusta.de>
To: linux-kernel@vger.kernel.org
Subject: [2.6 patch] mm/filemap.c: make generic_file_direct_IO static
Date: Sun, 6 Mar 2005 15:32:35 +0100 [thread overview]
Message-ID: <20050306143235.GC5070@stusta.de> (raw)
generic_file_direct_IO isn't used outside of this file.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
include/linux/fs.h | 2 --
mm/filemap.c | 7 +++++--
2 files changed, 5 insertions(+), 4 deletions(-)
--- linux-2.6.11-mm1-full/include/linux/fs.h.old 2005-03-04 15:42:34.000000000 +0100
+++ linux-2.6.11-mm1-full/include/linux/fs.h 2005-03-04 15:42:40.000000000 +0100
@@ -1487,8 +1487,6 @@
loff_t *, read_descriptor_t *, read_actor_t);
extern void
file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping);
-extern ssize_t generic_file_direct_IO(int rw, struct kiocb *iocb,
- const struct iovec *iov, loff_t offset, unsigned long nr_segs);
extern ssize_t generic_file_readv(struct file *filp, const struct iovec *iov,
unsigned long nr_segs, loff_t *ppos);
ssize_t generic_file_writev(struct file *filp, const struct iovec *iov,
--- linux-2.6.11-mm1-full/mm/filemap.c.old 2005-03-04 15:42:48.000000000 +0100
+++ linux-2.6.11-mm1-full/mm/filemap.c 2005-03-04 15:44:29.000000000 +0100
@@ -41,6 +41,10 @@
#include <asm/uaccess.h>
#include <asm/mman.h>
+static ssize_t
+generic_file_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov,
+ loff_t offset, unsigned long nr_segs);
+
/*
* Shared mappings implemented 30.11.1994. It's not fully working yet,
* though.
@@ -2314,7 +2318,7 @@
* Called under i_sem for writes to S_ISREG files. Returns -EIO if something
* went wrong during pagecache shootdown.
*/
-ssize_t
+static ssize_t
generic_file_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov,
loff_t offset, unsigned long nr_segs)
{
@@ -2349,4 +2353,3 @@
}
return retval;
}
-EXPORT_SYMBOL_GPL(generic_file_direct_IO);
next reply other threads:[~2005-03-06 14:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-06 14:32 Adrian Bunk [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-24 3:09 [2.6 patch] mm/filemap.c: make generic_file_direct_IO 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=20050306143235.GC5070@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.