Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282961
b: refs/heads/master
c: 5872dda
h: refs/heads/master
i:
  282959: 8610f76
v: v3
  • Loading branch information
Yongqiang Yang authored and Theodore Ts'o committed Dec 28, 2011
1 parent c3c3434 commit 97a9daa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 2aff57b0c052344e8401a8b4a33c2a1ecb0f627c
refs/heads/master: 5872ddaaf05bf25e3ab90580295ebc946405928c
5 changes: 3 additions & 2 deletions trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4660,7 +4660,6 @@ int ext4_change_inode_journal_flag(struct inode *inode, int val)
}

jbd2_journal_lock_updates(journal);
jbd2_journal_flush(journal);

/*
* OK, there are no updates running now, and all cached data is
Expand All @@ -4672,8 +4671,10 @@ int ext4_change_inode_journal_flag(struct inode *inode, int val)

if (val)
ext4_set_inode_flag(inode, EXT4_INODE_JOURNAL_DATA);
else
else {
jbd2_journal_flush(journal);
ext4_clear_inode_flag(inode, EXT4_INODE_JOURNAL_DATA);
}
ext4_set_aops(inode);

jbd2_journal_unlock_updates(journal);
Expand Down

0 comments on commit 97a9daa

Please sign in to comment.