From ab4194c068c01b0d81df2ba4bc143926117bccc6 Mon Sep 17 00:00:00 2001 From: nikita Date: Wed, 8 Nov 2006 20:24:54 +0000 Subject: [PATCH] jbd: add a patch to create shadow-copies for all transaction buffers. --- .../patches/jbd-copy-out-everything.patch | 23 ++++++++++++++++++++++ lustre/kernel_patches/series/2.6-rhel4.series | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 lustre/kernel_patches/patches/jbd-copy-out-everything.patch 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 index 0000000..62ceb28 --- /dev/null +++ b/lustre/kernel_patches/patches/jbd-copy-out-everything.patch @@ -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); + + /* diff --git a/lustre/kernel_patches/series/2.6-rhel4.series b/lustre/kernel_patches/series/2.6-rhel4.series index 93a0308..83609d2 100644 --- a/lustre/kernel_patches/series/2.6-rhel4.series +++ b/lustre/kernel_patches/series/2.6-rhel4.series @@ -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 -- 1.8.3.1