Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296593
b: refs/heads/master
c: a8e25a8
h: refs/heads/master
i:
  296591: 6d6f866
v: v3
  • Loading branch information
Artem Bityutskiy authored and Theodore Ts'o committed Mar 22, 2012
1 parent 1fe3a01 commit 6f968b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 1b8b9750f07cdd6e13f12c06ae7ec853f2abbe6c
refs/heads/master: a8e25a83245618e6b0ddf82a9bba79c1b466804d
7 changes: 3 additions & 4 deletions trunk/fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,9 +836,6 @@ static void ext4_put_super(struct super_block *sb)
destroy_workqueue(sbi->dio_unwritten_wq);

lock_super(sb);
if (sb->s_dirt)
ext4_commit_super(sb, 1);

if (sbi->s_journal) {
err = jbd2_journal_destroy(sbi->s_journal);
sbi->s_journal = NULL;
Expand All @@ -855,8 +852,10 @@ static void ext4_put_super(struct super_block *sb)
if (!(sb->s_flags & MS_RDONLY)) {
EXT4_CLEAR_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_RECOVER);
es->s_state = cpu_to_le16(sbi->s_mount_state);
ext4_commit_super(sb, 1);
}
if (sb->s_dirt || !(sb->s_flags & MS_RDONLY))
ext4_commit_super(sb, 1);

if (sbi->s_proc) {
remove_proc_entry("options", sbi->s_proc);
remove_proc_entry(sb->s_id, ext4_proc_root);
Expand Down

0 comments on commit 6f968b3

Please sign in to comment.