diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2015-02-10 17:10:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-10 17:30:31 -0500 |
commit | 0661a33611fca12570cba48d9344ce68834ee86c (patch) | |
tree | 0cd7730b2060912b004ad28917115f7586326167 /mm/msync.c | |
parent | ac51b934f3912582d3c897c6c4d09b32ea57b2c7 (diff) |
mm: remove rest usage of VM_NONLINEAR and pte_file()
One bit in ->vm_flags is unused now!
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/msync.c')
-rw-r--r-- | mm/msync.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/msync.c b/mm/msync.c index 992a1673d488..bb04d53ae852 100644 --- a/mm/msync.c +++ b/mm/msync.c | |||
@@ -86,10 +86,7 @@ SYSCALL_DEFINE3(msync, unsigned long, start, size_t, len, int, flags) | |||
86 | (vma->vm_flags & VM_SHARED)) { | 86 | (vma->vm_flags & VM_SHARED)) { |
87 | get_file(file); | 87 | get_file(file); |
88 | up_read(&mm->mmap_sem); | 88 | up_read(&mm->mmap_sem); |
89 | if (vma->vm_flags & VM_NONLINEAR) | 89 | error = vfs_fsync_range(file, fstart, fend, 1); |
90 | error = vfs_fsync(file, 1); | ||
91 | else | ||
92 | error = vfs_fsync_range(file, fstart, fend, 1); | ||
93 | fput(file); | 90 | fput(file); |
94 | if (error || start >= end) | 91 | if (error || start >= end) |
95 | goto out; | 92 | goto out; |