mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
mm: remove rest usage of VM_NONLINEAR and pte_file()
One bit in ->vm_flags is unused now! Signed-off-by: Kirill A. Shutemov <[email protected]> Cc: Dan Carpenter <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ac51b934f3
commit
0661a33611
13 changed files with 49 additions and 71 deletions
|
|
@ -86,10 +86,7 @@ SYSCALL_DEFINE3(msync, unsigned long, start, size_t, len, int, flags)
|
|||
(vma->vm_flags & VM_SHARED)) {
|
||||
get_file(file);
|
||||
up_read(&mm->mmap_sem);
|
||||
if (vma->vm_flags & VM_NONLINEAR)
|
||||
error = vfs_fsync(file, 1);
|
||||
else
|
||||
error = vfs_fsync_range(file, fstart, fend, 1);
|
||||
error = vfs_fsync_range(file, fstart, fend, 1);
|
||||
fput(file);
|
||||
if (error || start >= end)
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue