diff options
Diffstat (limited to 'fs/ramfs/file-nommu.c')
| -rw-r--r-- | fs/ramfs/file-nommu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ramfs/file-nommu.c b/fs/ramfs/file-nommu.c index bbafbde3471a..f6ab41b39612 100644 --- a/fs/ramfs/file-nommu.c +++ b/fs/ramfs/file-nommu.c | |||
| @@ -34,7 +34,14 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file, | |||
| 34 | unsigned long flags); | 34 | unsigned long flags); |
| 35 | static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma); | 35 | static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma); |
| 36 | 36 | ||
| 37 | static unsigned ramfs_mmap_capabilities(struct file *file) | ||
| 38 | { | ||
| 39 | return NOMMU_MAP_DIRECT | NOMMU_MAP_COPY | NOMMU_MAP_READ | | ||
| 40 | NOMMU_MAP_WRITE | NOMMU_MAP_EXEC; | ||
| 41 | } | ||
| 42 | |||
| 37 | const struct file_operations ramfs_file_operations = { | 43 | const struct file_operations ramfs_file_operations = { |
| 44 | .mmap_capabilities = ramfs_mmap_capabilities, | ||
| 38 | .mmap = ramfs_nommu_mmap, | 45 | .mmap = ramfs_nommu_mmap, |
| 39 | .get_unmapped_area = ramfs_nommu_get_unmapped_area, | 46 | .get_unmapped_area = ramfs_nommu_get_unmapped_area, |
| 40 | .read = new_sync_read, | 47 | .read = new_sync_read, |
