git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
fs
/
ramfs
/
file-mmu.c
diff --git
a/fs/ramfs/file-mmu.c
b/fs/ramfs/file-mmu.c
index
86f14ca
..
2115383
100644
(file)
--- a/
fs/ramfs/file-mmu.c
+++ b/
fs/ramfs/file-mmu.c
@@
-24,15
+24,26
@@
* caches is sufficient.
*/
* caches is sufficient.
*/
+#include <linux/module.h>
#include <linux/fs.h>
#include <linux/fs.h>
+#include <linux/pagemap.h>
+#include <linux/highmem.h>
+#include <linux/init.h>
+#include <linux/string.h>
+#include <linux/smp_lock.h>
+#include <linux/backing-dev.h>
+#include <linux/ramfs.h>
-const struct address_space_operations ramfs_aops = {
+#include <asm/uaccess.h>
+#include "internal.h"
+
+struct address_space_operations ramfs_aops = {
.readpage = simple_readpage,
.prepare_write = simple_prepare_write,
.commit_write = simple_commit_write
};
.readpage = simple_readpage,
.prepare_write = simple_prepare_write,
.commit_write = simple_commit_write
};
-
const
struct file_operations ramfs_file_operations = {
+struct file_operations ramfs_file_operations = {
.read = generic_file_read,
.write = generic_file_write,
.mmap = generic_file_mmap,
.read = generic_file_read,
.write = generic_file_write,
.mmap = generic_file_mmap,