diff mbox

btrfs file write debugging patch

Message ID AANLkTi=4HW0vFa4D_WAo=Xi0XC51na_EmhqAF9YEenb0@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mitch Harder March 1, 2011, 5:09 a.m. UTC
None
diff mbox

Patch

--- file.c.file-write-patch-v1	2011-02-28 13:06:37.000000000 -0600
+++ file.c	2011-02-28 19:23:21.000000000 -0600
@@ -908,6 +908,7 @@ 
 	ssize_t err = 0;
 	size_t count;
 	size_t ocount;
+	size_t write_bytes = 0;
 	int ret = 0;
 	int nrptrs;
 	unsigned long first_index;
@@ -963,7 +964,7 @@ 
 	BTRFS_I(inode)->sequence++;

 	if (unlikely(file->f_flags & O_DIRECT)) {
-		trace_printk("TPK: transferred to unlikely(file->f_flags \& O_DIRECT)\n");
+		trace_printk("TPK: transferred to unlikely(file->f_flags & O_DIRECT)\n");
 		num_written = generic_file_direct_write(iocb, iov, &nr_segs,
 							pos, ppos, count,
 							ocount);
@@ -995,7 +996,7 @@ 
 		 */
 		buffered = 1;
 		pos += num_written;
-		trace_printk("TPK: end unlikely(file->f_flags \& O_DIRECT) with
num_written=%i\n",
+		trace_printk("TPK: end unlikely(file->f_flags & O_DIRECT) with
num_written=%i\n",
 			     num_written);