Whamcloud - gitweb
b=3119
[fs/lustre-release.git] / lustre / kernel_patches / patches / ext3-no-write-super.patch
1  0 files changed
2
3 --- linux-2.4.20/fs/ext3/super.c~ext3-no-write-super    2003-08-11 13:20:17.000000000 +0400
4 +++ linux-2.4.20-alexey/fs/ext3/super.c 2003-08-11 13:31:35.000000000 +0400
5 @@ -1849,7 +1849,6 @@ void ext3_write_super (struct super_bloc
6         if (down_trylock(&sb->s_lock) == 0)
7                 BUG();          /* aviro detector */
8         sb->s_dirt = 0;
9 -       target = log_start_commit(EXT3_SB(sb)->s_journal, NULL);
10  
11         /*
12          * Tricky --- if we are unmounting, the write really does need
13 @@ -1857,6 +1856,7 @@ void ext3_write_super (struct super_bloc
14          * sb->s_root.
15          */
16         if (do_sync_supers || !sb->s_root) {
17 +               target = log_start_commit(EXT3_SB(sb)->s_journal, NULL);
18                 unlock_super(sb);
19                 log_wait_commit(EXT3_SB(sb)->s_journal, target);
20                 lock_super(sb);
21
22 _