diff options
author | James Morris <jmorris@namei.org> | 2008-11-13 19:29:12 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-11-13 19:29:12 -0500 |
commit | 2b828925652340277a889cbc11b2d0637f7cdaf7 (patch) | |
tree | 32fcb3d3e466fc419fad2d3717956a5b5ad3d35a /fs/ext3 | |
parent | 3a3b7ce9336952ea7b9564d976d068a238976c9d (diff) | |
parent | 58e20d8d344b0ee083febb18c2b021d2427e56ca (diff) |
Merge branch 'master' into next
Conflicts:
security/keys/internal.h
security/keys/process_keys.c
security/keys/request_key.c
Fixed conflicts above by using the non 'tsk' versions.
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/super.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index e5717a4fae67..f6c94f232ec1 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -2375,12 +2375,9 @@ int ext3_force_commit(struct super_block *sb) | |||
2375 | /* | 2375 | /* |
2376 | * Ext3 always journals updates to the superblock itself, so we don't | 2376 | * Ext3 always journals updates to the superblock itself, so we don't |
2377 | * have to propagate any other updates to the superblock on disk at this | 2377 | * have to propagate any other updates to the superblock on disk at this |
2378 | * point. Just start an async writeback to get the buffers on their way | 2378 | * point. (We can probably nuke this function altogether, and remove |
2379 | * to the disk. | 2379 | * any mention to sb->s_dirt in all of fs/ext3; eventual cleanup...) |
2380 | * | ||
2381 | * This implicitly triggers the writebehind on sync(). | ||
2382 | */ | 2380 | */ |
2383 | |||
2384 | static void ext3_write_super (struct super_block * sb) | 2381 | static void ext3_write_super (struct super_block * sb) |
2385 | { | 2382 | { |
2386 | if (mutex_trylock(&sb->s_lock) != 0) | 2383 | if (mutex_trylock(&sb->s_lock) != 0) |
@@ -2390,13 +2387,12 @@ static void ext3_write_super (struct super_block * sb) | |||
2390 | 2387 | ||
2391 | static int ext3_sync_fs(struct super_block *sb, int wait) | 2388 | static int ext3_sync_fs(struct super_block *sb, int wait) |
2392 | { | 2389 | { |
2393 | tid_t target; | ||
2394 | |||
2395 | sb->s_dirt = 0; | 2390 | sb->s_dirt = 0; |
2396 | if (journal_start_commit(EXT3_SB(sb)->s_journal, &target)) { | 2391 | if (wait) |
2397 | if (wait) | 2392 | ext3_force_commit(sb); |
2398 | log_wait_commit(EXT3_SB(sb)->s_journal, target); | 2393 | else |
2399 | } | 2394 | journal_start_commit(EXT3_SB(sb)->s_journal, NULL); |
2395 | |||
2400 | return 0; | 2396 | return 0; |
2401 | } | 2397 | } |
2402 | 2398 | ||