]> git.pld-linux.org Git - packages/lin_tape.git/blame - linux-4.9.patch
- updated to 3.0.20
[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
3@@ -11838,7 +11838,10 @@
6f6082f9 4
300a759d 5 down_read(&current->mm->mmap_sem);
6f6082f9 6
300a759d 7-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)
6f6082f9 8+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0)
300a759d
JR
9+ mapped_pages = get_user_pages((ulong)user_location, number_pages,
10+ rw ? FOLL_WRITE : 0, pages, NULL);
11+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)
12 mapped_pages = get_user_pages((ulong)user_location, number_pages,
13 rw, 0, pages, NULL);
6f6082f9 14 #else
300a759d
JR
15--- lin_tape-3.0.18/stmp.c~ 2017-05-09 21:25:12.000000000 +0200
16+++ lin_tape-3.0.18/stmp.c 2017-05-09 21:29:19.121101188 +0200
17@@ -5205,7 +5205,14 @@
9752ce8d
JR
18 if ((pages = kmalloc(max_pages * sizeof(*pages), GFP_KERNEL)) == NULL)
19 return -ENOMEM;
20
21-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,21)
6f6082f9 22+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0)
9752ce8d 23+ res = get_user_pages_unlocked(
6f6082f9
JR
24+ uaddr,
25+ nr_pages,
300a759d 26+ rw == READ ? FOLL_WRITE : 0,
6f6082f9 27+ pages,
300a759d 28+ NULL);
9752ce8d
JR
29+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,21)
30 /* Try to fault in all of the necessary pages */
31 /* rw==READ means read from drive, write into memory area */
32 res = get_user_pages_unlocked(
This page took 0.067182 seconds and 4 git commands to generate.