mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-14 13:39:10 +00:00
Orangefs: Use readonly mmap since writepage is not implemented.
Previously the code silently failed to update the disk. Now it will not allow writable and shared mmaps. Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
parent
1be21f865a
commit
353908035f
@ -853,7 +853,9 @@ static int pvfs2_file_mmap(struct file *file, struct vm_area_struct *vma)
|
||||
/* set the sequential readahead hint */
|
||||
vma->vm_flags |= VM_SEQ_READ;
|
||||
vma->vm_flags &= ~VM_RAND_READ;
|
||||
return generic_file_mmap(file, vma);
|
||||
|
||||
/* Use readonly mmap since we cannot support writable maps. */
|
||||
return generic_file_readonly_mmap(file, vma);
|
||||
}
|
||||
|
||||
#define mapping_nrpages(idata) ((idata)->nrpages)
|
||||
|
Loading…
x
Reference in New Issue
Block a user