* [2.6 patch] mm/filemap.c: make generic_file_direct_IO static
@ 2005-03-06 14:32 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-03-06 14:32 UTC (permalink / raw)
To: linux-kernel
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* [2.6 patch] mm/filemap.c: make generic_file_direct_IO 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
generic_file_direct_IO 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/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);
^ 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:32 [2.6 patch] mm/filemap.c: make generic_file_direct_IO 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