Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147847
b: refs/heads/master
c: a9e220f
h: refs/heads/master
i:
  147845: 68e163c
  147843: 84a346c
  147839: 00146c8
v: v3
  • Loading branch information
Al Viro committed Jun 12, 2009
1 parent 4c1d525 commit f5447a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 62c6943b4b1e818aea60c11c5a68a50785b83119
refs/heads/master: a9e220f8322e2b0e0b8903fe00265461cffad3f0
2 changes: 1 addition & 1 deletion trunk/fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ static void ext4_put_super(struct super_block *sb)
struct ext4_super_block *es = sbi->s_es;
int i, err;

lock_super(sb);
if (sb->s_dirt)
ext4_write_super(sb);

Expand Down Expand Up @@ -645,7 +646,6 @@ static void ext4_put_super(struct super_block *sb)
unlock_super(sb);
kobject_put(&sbi->s_kobj);
wait_for_completion(&sbi->s_kobj_unregister);
lock_super(sb);
lock_kernel();
kfree(sbi->s_blockgroup_lock);
kfree(sbi);
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ void generic_shutdown_super(struct super_block *sb)
if (sb->s_root) {
shrink_dcache_for_umount(sb);
sync_filesystem(sb);
lock_super(sb);
get_fs_excl();
sb->s_flags &= ~MS_ACTIVE;

/* bad name - it should be evict_inodes() */
Expand All @@ -322,7 +322,7 @@ void generic_shutdown_super(struct super_block *sb)
}

unlock_kernel();
unlock_super(sb);
put_fs_excl();
}
spin_lock(&sb_lock);
/* should be initialized for __put_super_and_need_restart() */
Expand Down

0 comments on commit f5447a4

Please sign in to comment.