@@ -53,12 +53,14 @@
int offset = pos & (PAGE_CACHE_SIZE - 1);
int total_copied = 0;
+ /***************************
if ((jiffies % 10) == 0)
return 0;
if ((jiffies % 25) == 0) {
write_bytes /= 2;
}
+ **************************/
while (write_bytes > 0) {
size_t count = min_t(size_t,
@@ -82,10 +84,13 @@
/* Return to btrfs_file_aio_write to fault page */
if (unlikely(copied == 0)) {
+ trace_printk("TPK: unlikely copied == 0 in btrfs_copy_from_user
(total_copied=%i)\n",
+ total_copied);
break;
}
if (unlikely(copied < PAGE_CACHE_SIZE - offset)) {
+ trace_printk("TPK: unlikely copied < PAGE_CACHE_SIZE - offset in
btrfs_copy_from_user\n");
offset += copied;