Whamcloud - gitweb
jbd: add a patch to create shadow-copies for all transaction buffers.
authornikita <nikita>
Wed, 8 Nov 2006 20:24:54 +0000 (20:24 +0000)
committernikita <nikita>
Wed, 8 Nov 2006 20:24:54 +0000 (20:24 +0000)
lustre/kernel_patches/patches/jbd-copy-out-everything.patch [new file with mode: 0644]
lustre/kernel_patches/series/2.6-rhel4.series

diff --git a/lustre/kernel_patches/patches/jbd-copy-out-everything.patch b/lustre/kernel_patches/patches/jbd-copy-out-everything.patch
new file mode 100644 (file)
index 0000000..62ceb28
--- /dev/null
@@ -0,0 +1,23 @@
+Index: linux/fs/jbd/journal.c
+===================================================================
+--- linux.orig/fs/jbd/journal.c
++++ linux/fs/jbd/journal.c
+@@ -288,7 +288,7 @@ int journal_write_metadata_buffer(transa
+                                 struct journal_head **jh_out,
+                                 int blocknr)
+ {
+-      int need_copy_out = 0;
++      int need_copy_out;
+       int done_copy_out = 0;
+       int do_escape = 0;
+       char *mapped_data;
+@@ -334,7 +334,8 @@ repeat:
+                               cpu_to_be32(JFS_MAGIC_NUMBER)) {
+               need_copy_out = 1;
+               do_escape = 1;
+-      }
++      } else
++              need_copy_out = jh_in->b_committed_data == NULL;
+       kunmap_atomic(mapped_data, KM_USER0);
+       /*
index 93a0308..83609d2 100644 (file)
@@ -8,7 +8,7 @@ iopen-misc-2.6-suse.patch
 export-truncate-2.6-suse.patch 
 export_symbols-2.6-rhel4.patch 
 dev_read_only-2.6-suse.patch 
-export-log-2.6-rhel4.patch
+export-log-2.6-rhel4.patch 
 lookup_bdev_init_intent.patch
 remove-suid-2.6-suse.patch
 export-show_task-2.6-vanilla.patch
@@ -32,3 +32,4 @@ highmem-split-2.6-rhel4.patch
 proc-sleep-2.6.9.patch
 pag-basic-2.6-rhel4.patch
 dynamic-locks-2.6.9.patch 
+jbd-copy-out-everything.patch