proc: try to remove use of FOLL_FORCE entirely
[sfrench/cifs-2.6.git] / fs / proc / base.c
index 9e3ac5c1178039ad16eb6476e62d542b38f5748b..45f6bf68fff3ed30df0f85d98c0f644c320a9bf7 100644 (file)
@@ -821,10 +821,7 @@ static ssize_t mem_rw(struct file *file, char __user *buf,
        if (!mmget_not_zero(mm))
                goto free;
 
-       /* Maybe we should limit FOLL_FORCE to actual ptrace users? */
-       flags = FOLL_FORCE;
-       if (write)
-               flags |= FOLL_WRITE;
+       flags = write ? FOLL_WRITE : 0;
 
        while (count > 0) {
                int this_len = min_t(int, count, PAGE_SIZE);