aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext3/inode.c')
-rw-r--r--fs/ext3/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c
index 85fe655fe3e0..9da9125ba3ef 100644
--- a/fs/ext3/inode.c
+++ b/fs/ext3/inode.c
@@ -223,8 +223,12 @@ void ext3_evict_inode (struct inode *inode)
223 * 223 *
224 * Note that directories do not have this problem because they don't 224 * Note that directories do not have this problem because they don't
225 * use page cache. 225 * use page cache.
226 *
227 * The s_journal check handles the case when ext3_get_journal() fails
228 * and puts the journal inode.
226 */ 229 */
227 if (inode->i_nlink && ext3_should_journal_data(inode) && 230 if (inode->i_nlink && ext3_should_journal_data(inode) &&
231 EXT3_SB(inode->i_sb)->s_journal &&
228 (S_ISLNK(inode->i_mode) || S_ISREG(inode->i_mode))) { 232 (S_ISLNK(inode->i_mode) || S_ISREG(inode->i_mode))) {
229 tid_t commit_tid = atomic_read(&ei->i_datasync_tid); 233 tid_t commit_tid = atomic_read(&ei->i_datasync_tid);
230 journal_t *journal = EXT3_SB(inode->i_sb)->s_journal; 234 journal_t *journal = EXT3_SB(inode->i_sb)->s_journal;