]> err.no Git - linux-2.6/blobdiff - fs/splice.c
[PATCH] sys_sync_file_range(): move exported flags outside __KERNEL__
[linux-2.6] / fs / splice.c
index 8fa9217ed5858d60e1069ab78b545a6ece896224..a285fd746dc0d34aa97762a6e138416acae292e7 100644 (file)
@@ -324,6 +324,8 @@ __generic_file_splice_read(struct file *in, loff_t *ppos,
                                              mapping_gfp_mask(mapping));
                        if (unlikely(error)) {
                                page_cache_release(page);
+                               if (error == -EEXIST)
+                                       continue;
                                break;
                        }
                        /*