diff options
author | Weizhao Ouyang <o451686892@gmail.com> | 2023-04-04 05:28:44 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-04-10 19:58:45 +0200 |
commit | 0c9f4521958ff52b74967c8a39a8b5747ba8df41 (patch) | |
tree | 034a07dd8bc6b54266f80751e9248ca51ab90132 /fs/f2fs/inline.c | |
parent | f2fs: merge lz4hc_compress_pages() to lz4_compress_pages() (diff) | |
download | linux-0c9f4521958ff52b74967c8a39a8b5747ba8df41.tar.xz linux-0c9f4521958ff52b74967c8a39a8b5747ba8df41.zip |
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.c | 2 |
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) |