Merge tag 'f2fs-for-5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk...
[muen/linux.git] / fs / f2fs / inode.c
index d44e6de..e7f2e87 100644 (file)
@@ -44,7 +44,7 @@ void f2fs_set_inode_flags(struct inode *inode)
                new_fl |= S_NOATIME;
        if (flags & F2FS_DIRSYNC_FL)
                new_fl |= S_DIRSYNC;
-       if (f2fs_encrypted_inode(inode))
+       if (file_is_encrypt(inode))
                new_fl |= S_ENCRYPTED;
        inode_set_flags(inode, new_fl,
                        S_SYNC|S_APPEND|S_IMMUTABLE|S_NOATIME|S_DIRSYNC|
@@ -468,7 +468,7 @@ make_now:
                inode->i_mapping->a_ops = &f2fs_dblock_aops;
                inode_nohighmem(inode);
        } else if (S_ISLNK(inode->i_mode)) {
-               if (f2fs_encrypted_inode(inode))
+               if (file_is_encrypt(inode))
                        inode->i_op = &f2fs_encrypted_symlink_inode_operations;
                else
                        inode->i_op = &f2fs_symlink_inode_operations;