]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - fs/orangefs/file.c
Merge tag 'mm-stable-2023-02-20-13-37' of git://git.kernel.org/pub/scm/linux/kernel...
[thirdparty/linux.git] / fs / orangefs / file.c
index 4ecb91a9bbebe4d4ed9a625735ef4864e775392d..1a4301a38aa7c1a06e33c6da3fde1cee5b2c81cd 100644 (file)
@@ -390,8 +390,7 @@ static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma)
                     "orangefs_file_mmap: called on %pD\n", file);
 
        /* set the sequential readahead hint */
-       vma->vm_flags |= VM_SEQ_READ;
-       vma->vm_flags &= ~VM_RAND_READ;
+       vm_flags_mod(vma, VM_SEQ_READ, VM_RAND_READ);
 
        file_accessed(file);
        vma->vm_ops = &orangefs_file_vm_ops;