Whamcloud - gitweb
- simple optimization for EXT3:
authoralex <alex>
Mon, 28 Jul 2003 12:18:00 +0000 (12:18 +0000)
committeralex <alex>
Mon, 28 Jul 2003 12:18:00 +0000 (12:18 +0000)
  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 [new file with mode: 0644]
lustre/kernel_patches/pc/ext3-no-write-super.pc [new file with mode: 0644]

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 (file)
index 0000000..b096276
--- /dev/null
@@ -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 (file)
index 0000000..08795de
--- /dev/null
@@ -0,0 +1 @@
+fs/ext3/super.c