From 42ffc3aceb62a73d1d8c3813c71b206113356c58 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 28 Jul 2003 12:18:00 +0000 Subject: [PATCH] - simple optimization for EXT3: ext3_write_super() doesn't need to start commit as kupdated wants. this improves things significantly in some cases --- lustre/kernel_patches/patches/ext3-no-write-super.patch | 16 ++++++++++++++++ lustre/kernel_patches/pc/ext3-no-write-super.pc | 1 + 2 files changed, 17 insertions(+) create mode 100644 lustre/kernel_patches/patches/ext3-no-write-super.patch create mode 100644 lustre/kernel_patches/pc/ext3-no-write-super.pc diff --git a/lustre/kernel_patches/patches/ext3-no-write-super.patch b/lustre/kernel_patches/patches/ext3-no-write-super.patch new file mode 100644 index 0000000..b096276 --- /dev/null +++ b/lustre/kernel_patches/patches/ext3-no-write-super.patch @@ -0,0 +1,16 @@ + +--- linux-2.4.18/fs/ext3/super.c~ext3-no-write-super Mon Jul 28 14:13:05 2003 ++++ linux-2.4.18-alexey/fs/ext3/super.c Mon Jul 28 16:14:11 2003 +@@ -1818,7 +1818,10 @@ void ext3_write_super (struct super_bloc + if (down_trylock(&sb->s_lock) == 0) + BUG(); + sb->s_dirt = 0; ++#if 0 ++ /* we really don't need this, jbd makes periodical commits by itself */ + log_start_commit(EXT3_SB(sb)->s_journal, NULL); ++#endif + } + + static int ext3_sync_fs(struct super_block *sb) + +_ diff --git a/lustre/kernel_patches/pc/ext3-no-write-super.pc b/lustre/kernel_patches/pc/ext3-no-write-super.pc new file mode 100644 index 0000000..08795de --- /dev/null +++ b/lustre/kernel_patches/pc/ext3-no-write-super.pc @@ -0,0 +1 @@ +fs/ext3/super.c -- 1.8.3.1