[2.6 patch] mm/filemap.c: make generic_file_direct_IO static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



generic_file_direct_IO isn't used outside of this file.

Signed-off-by: Adrian Bunk <[email protected]>

---

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);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux