summaryrefslogtreecommitdiff
path: root/fs/f2fs/inline.c
diff options
context:
space:
mode:
authorWeizhao Ouyang <o451686892@gmail.com>2023-04-04 06:28:44 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2023-04-10 20:58:45 +0300
commit0c9f4521958ff52b74967c8a39a8b5747ba8df41 (patch)
tree034a07dd8bc6b54266f80751e9248ca51ab90132 /fs/f2fs/inline.c
parent3094e5579b4d5d8343fdb05e9a3a35cc85a14c1c (diff)
downloadlinux-0c9f4521958ff52b74967c8a39a8b5747ba8df41.tar.xz
f2fs: use common implementation of file type
Use common implementation of file type conversion helpers. Signed-off-by: Weizhao Ouyang <o451686892@gmail.com> Reviewed-by: Chao Yu <chao@kernel.org> 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 72269e7efd26..4638fee16a91 100644
--- a/fs/f2fs/inline.c
+++ b/fs/f2fs/inline.c
@@ -497,7 +497,7 @@ static int f2fs_add_inline_entries(struct inode *dir, void *inline_dentry)
fname.hash = de->hash_code;
ino = le32_to_cpu(de->ino);
- fake_mode = f2fs_get_de_type(de) << S_SHIFT;
+ fake_mode = fs_ftype_to_dtype(de->file_type) << S_DT_SHIFT;
err = f2fs_add_regular_entry(dir, &fname, NULL, ino, fake_mode);
if (err)