f2fs: clean up with f2fs_encrypted_inode()
authorChao Yu <yuchao0@huawei.com>
Tue, 17 Jul 2018 12:41:47 +0000 (20:41 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Sep 2018 22:11:51 +0000 (15:11 -0700)
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c

index 41f320bd2aa7f7554d498eb2ff0c50c6e3a88c9a..f45a94b2db6d7a0450e0b0e30be0f5b97be4b898 100644 (file)
@@ -1615,7 +1615,7 @@ static int f2fs_ioc_getflags(struct file *filp, unsigned long arg)
        struct f2fs_inode_info *fi = F2FS_I(inode);
        unsigned int flags = fi->i_flags;
 
-       if (file_is_encrypt(inode))
+       if (f2fs_encrypted_inode(inode))
                flags |= F2FS_ENCRYPT_FL;
        if (f2fs_has_inline_data(inode) || f2fs_has_inline_dentry(inode))
                flags |= F2FS_INLINE_DATA_FL;