Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / fs / ext4 / ext4_jbd2.h
index df908ef79ccea1ac594d26f8489799d9912afdb1..75a5309f223151767aa951336dbd370e6776ec14 100644 (file)
@@ -411,7 +411,7 @@ static inline int ext4_inode_journal_mode(struct inode *inode)
            (ext4_test_inode_flag(inode, EXT4_INODE_JOURNAL_DATA) &&
            !test_opt(inode->i_sb, DELALLOC))) {
                /* We do not support data journalling for encrypted data */
-               if (S_ISREG(inode->i_mode) && ext4_encrypted_inode(inode))
+               if (S_ISREG(inode->i_mode) && IS_ENCRYPTED(inode))
                        return EXT4_INODE_ORDERED_DATA_MODE;  /* ordered */
                return EXT4_INODE_JOURNAL_DATA_MODE;    /* journal data */
        }