diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/filemap.c | 17 | ||||
-rw-r--r-- | mm/memory.c | 2 |
2 files changed, 11 insertions, 8 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 88611928e71f..b5346576e58d 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -37,6 +37,10 @@ | |||
37 | #include <asm/uaccess.h> | 37 | #include <asm/uaccess.h> |
38 | #include <asm/mman.h> | 38 | #include <asm/mman.h> |
39 | 39 | ||
40 | static ssize_t | ||
41 | generic_file_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, | ||
42 | loff_t offset, unsigned long nr_segs); | ||
43 | |||
40 | /* | 44 | /* |
41 | * Shared mappings implemented 30.11.1994. It's not fully working yet, | 45 | * Shared mappings implemented 30.11.1994. It's not fully working yet, |
42 | * though. | 46 | * though. |
@@ -301,8 +305,9 @@ EXPORT_SYMBOL(sync_page_range); | |||
301 | * as it forces O_SYNC writers to different parts of the same file | 305 | * as it forces O_SYNC writers to different parts of the same file |
302 | * to be serialised right until io completion. | 306 | * to be serialised right until io completion. |
303 | */ | 307 | */ |
304 | int sync_page_range_nolock(struct inode *inode, struct address_space *mapping, | 308 | static int sync_page_range_nolock(struct inode *inode, |
305 | loff_t pos, size_t count) | 309 | struct address_space *mapping, |
310 | loff_t pos, size_t count) | ||
306 | { | 311 | { |
307 | pgoff_t start = pos >> PAGE_CACHE_SHIFT; | 312 | pgoff_t start = pos >> PAGE_CACHE_SHIFT; |
308 | pgoff_t end = (pos + count - 1) >> PAGE_CACHE_SHIFT; | 313 | pgoff_t end = (pos + count - 1) >> PAGE_CACHE_SHIFT; |
@@ -317,7 +322,6 @@ int sync_page_range_nolock(struct inode *inode, struct address_space *mapping, | |||
317 | ret = wait_on_page_writeback_range(mapping, start, end); | 322 | ret = wait_on_page_writeback_range(mapping, start, end); |
318 | return ret; | 323 | return ret; |
319 | } | 324 | } |
320 | EXPORT_SYMBOL(sync_page_range_nolock); | ||
321 | 325 | ||
322 | /** | 326 | /** |
323 | * filemap_fdatawait - walk the list of under-writeback pages of the given | 327 | * filemap_fdatawait - walk the list of under-writeback pages of the given |
@@ -2008,7 +2012,7 @@ generic_file_buffered_write(struct kiocb *iocb, const struct iovec *iov, | |||
2008 | } | 2012 | } |
2009 | EXPORT_SYMBOL(generic_file_buffered_write); | 2013 | EXPORT_SYMBOL(generic_file_buffered_write); |
2010 | 2014 | ||
2011 | ssize_t | 2015 | static ssize_t |
2012 | __generic_file_aio_write_nolock(struct kiocb *iocb, const struct iovec *iov, | 2016 | __generic_file_aio_write_nolock(struct kiocb *iocb, const struct iovec *iov, |
2013 | unsigned long nr_segs, loff_t *ppos) | 2017 | unsigned long nr_segs, loff_t *ppos) |
2014 | { | 2018 | { |
@@ -2108,7 +2112,7 @@ generic_file_aio_write_nolock(struct kiocb *iocb, const struct iovec *iov, | |||
2108 | return ret; | 2112 | return ret; |
2109 | } | 2113 | } |
2110 | 2114 | ||
2111 | ssize_t | 2115 | static ssize_t |
2112 | __generic_file_write_nolock(struct file *file, const struct iovec *iov, | 2116 | __generic_file_write_nolock(struct file *file, const struct iovec *iov, |
2113 | unsigned long nr_segs, loff_t *ppos) | 2117 | unsigned long nr_segs, loff_t *ppos) |
2114 | { | 2118 | { |
@@ -2229,7 +2233,7 @@ EXPORT_SYMBOL(generic_file_writev); | |||
2229 | * Called under i_sem for writes to S_ISREG files. Returns -EIO if something | 2233 | * Called under i_sem for writes to S_ISREG files. Returns -EIO if something |
2230 | * went wrong during pagecache shootdown. | 2234 | * went wrong during pagecache shootdown. |
2231 | */ | 2235 | */ |
2232 | ssize_t | 2236 | static ssize_t |
2233 | generic_file_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, | 2237 | generic_file_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, |
2234 | loff_t offset, unsigned long nr_segs) | 2238 | loff_t offset, unsigned long nr_segs) |
2235 | { | 2239 | { |
@@ -2264,4 +2268,3 @@ generic_file_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, | |||
2264 | } | 2268 | } |
2265 | return retval; | 2269 | return retval; |
2266 | } | 2270 | } |
2267 | EXPORT_SYMBOL_GPL(generic_file_direct_IO); | ||
diff --git a/mm/memory.c b/mm/memory.c index 788a62810340..ae8161f1f459 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -2225,7 +2225,7 @@ void update_mem_hiwater(struct task_struct *tsk) | |||
2225 | #if !defined(__HAVE_ARCH_GATE_AREA) | 2225 | #if !defined(__HAVE_ARCH_GATE_AREA) |
2226 | 2226 | ||
2227 | #if defined(AT_SYSINFO_EHDR) | 2227 | #if defined(AT_SYSINFO_EHDR) |
2228 | struct vm_area_struct gate_vma; | 2228 | static struct vm_area_struct gate_vma; |
2229 | 2229 | ||
2230 | static int __init gate_vma_init(void) | 2230 | static int __init gate_vma_init(void) |
2231 | { | 2231 | { |