summaryrefslogtreecommitdiff
path: root/recipes/iscsi-target/files/2.6.31.patch
blob: 74c91f5d4cc05ad273e23cb0c5f0e7184f737412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: iscsitarget-1.4.19/patches/compat-2.6.31.patch
===================================================================
--- /dev/null
+++ iscsitarget-1.4.19/patches/compat-2.6.31.patch
@@ -0,0 +1,11 @@
+--- sync/kernel/file-io.c       2009-12-10 17:43:36.000000000 -0500
++++ trunk/kernel/file-io.c      2008-12-04 17:35:21.000000000 -0500
+@@ -88,7 +88,7 @@
+                count = lu->blk_cnt << lu->blk_shift;
+        }
+ 
+-       res = filemap_write_and_wait_range(mapping, ppos, ppos + count - 1);
++       res = sync_page_range(inode, mapping, ppos, count);
+        if (res) {
+                eprintk("I/O error: syncing pages failed: %d\n", res);
+                return -EIO;