]> git.pld-linux.org Git - packages/lin_tape.git/blame - linux-4.9.patch
- up to 3.0.33
[packages/lin_tape.git] / linux-4.9.patch
CommitLineData
300a759d
JR
1--- lin_tape-3.0.18/lin_tape_scsi_tape.c~ 2017-02-23 19:14:41.000000000 +0100
2+++ lin_tape-3.0.18/lin_tape_scsi_tape.c 2017-05-09 21:28:19.916320963 +0200
65107090 3@@ -11838,13 +11838,9 @@
6f6082f9 4
300a759d 5 down_read(&current->mm->mmap_sem);
65107090
JR
6 #if !defined (UBUNTUVERSION)
7-#if LINUX_VERSION_CODE == KERNEL_VERSION(4,4,73) \
8- || (LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,92) && LINUX_VERSION_CODE < KERNEL_VERSION(4,4,103)) \
9- || defined(SLESKERNEL_4_4_103_6) \
10- || (LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,114) && LINUX_VERSION_CODE < KERNEL_VERSION(4,6,0) && !defined(SLESSP2))
11- mapped_pages = get_user_pages((unsigned long)user_location, number_pages,
12- rw, pages, NULL);
fda6bd2d 13-
6f6082f9 14+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0)
300a759d
JR
15+ mapped_pages = get_user_pages((ulong)user_location, number_pages,
16+ rw ? FOLL_WRITE : 0, pages, NULL);
fda6bd2d 17 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)
300a759d
JR
18 mapped_pages = get_user_pages((ulong)user_location, number_pages,
19 rw, 0, pages, NULL);
65107090
JR
20--- lin_tape-3.0.33/stmp.c~ 2018-06-01 20:01:49.000000000 +0200
21+++ lin_tape-3.0.33/stmp.c 2018-10-27 11:39:03.873330720 +0200
22@@ -5061,12 +5061,13 @@
9752ce8d 23
65107090
JR
24 /* Try to fault in all of the necessary pages */
25 /* rw==READ means read from drive, write into memory area */
26-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,114) && LINUX_VERSION_CODE < KERNEL_VERSION(4,6,0) && !defined(SLESSP2))
6f6082f9 27+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0)
65107090
JR
28 res = get_user_pages_unlocked(
29 uaddr,
30 nr_pages,
300a759d 31+ rw == READ ? FOLL_WRITE : 0,
65107090
JR
32 pages,
33- rw == READ ? FOLL_WRITE : 0); /* don't force */
300a759d 34+ NULL);
65107090 35
fda6bd2d 36 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,21)
65107090 37 res = get_user_pages_unlocked(
This page took 0.071397 seconds and 4 git commands to generate.