From: alex Date: Mon, 28 Jul 2003 12:18:00 +0000 (+0000) Subject: - simple optimization for EXT3: X-Git-Tag: v1_7_0_51~2^14~8 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=42ffc3aceb62a73d1d8c3813c71b206113356c58;p=fs%2Flustre-release.git - simple optimization for EXT3: ext3_write_super() doesn't need to start commit as kupdated wants. this improves things significantly in some cases --- 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