summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/inline.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-09-06 01:54:24 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2017-09-06 05:11:29 +0200
commit1958593e4fa9fa9e3e2d03b27e72af314c2891be (patch)
treeac86368a7315dacf4fe1d4c5d4c811f40daa2f6a /fs/f2fs/inline.c
parentRevert "f2fs: add a new function get_ssr_cost" (diff)
downloadlinux-1958593e4fa9fa9e3e2d03b27e72af314c2891be.tar.xz
linux-1958593e4fa9fa9e3e2d03b27e72af314c2891be.zip
f2fs: introduce f2fs_encrypted_file for clean-up
This patch replaces (f2fs_encrypted_inode() && S_ISREG()) with f2fs_encrypted_file(), which gives no functional change. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inline.c')
-rw-r--r--fs/f2fs/inline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c
index e63ab0d1f614..c133a4fdecf6 100644
--- a/fs/f2fs/inline.c
+++ b/fs/f2fs/inline.c
@@ -25,7 +25,7 @@ bool f2fs_may_inline_data(struct inode *inode)
if (i_size_read(inode) > MAX_INLINE_DATA(inode))
return false;
- if (f2fs_encrypted_inode(inode) && S_ISREG(inode->i_mode))
+ if (f2fs_encrypted_file(inode))
return false;
return true;