Message ID | 20130703213436.GA16960@kvack.org |
---|---|
State | Not Applicable, archived |
Headers | show |
Benjamin LaHaise <bcrl@kvack.org> writes: > This patch appears to have been missed for ext3, while the ext4 version was > merged back in March -- see 1363783057-3874-1-git-send-email-tytso@mit.edu. > A customer of mine has been running into this bug on their production > servers on 3.4-stable. It applies cleanly to the 3.3 through 3.8 trees. > > -ben Thanks Ben, I'm queuing it for the 3.5 kernel. Cheers,
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index d512c4b..d706dbf 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c @@ -218,7 +218,8 @@ void ext3_evict_inode (struct inode *inode) */ if (inode->i_nlink && ext3_should_journal_data(inode) && EXT3_SB(inode->i_sb)->s_journal && - (S_ISLNK(inode->i_mode) || S_ISREG(inode->i_mode))) { + (S_ISLNK(inode->i_mode) || S_ISREG(inode->i_mode)) && + inode->i_ino != EXT3_JOURNAL_INO) { tid_t commit_tid = atomic_read(&ei->i_datasync_tid); journal_t *journal = EXT3_SB(inode->i_sb)->s_journal;