diff options
author | Chao Yu <chao@kernel.org> | 2023-11-16 14:25:54 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-11-17 09:31:09 -0800 |
commit | ff6584ac2c4b4ee8e1fca20bffaaa387d8fe2974 (patch) | |
tree | 8dfe16bd0abf4dc611c09d020e7a36729ab8f63b /fs/f2fs/namei.c | |
parent | e26b6d39270f5eab0087453d9b544189a38c8564 (diff) | |
download | linux-ff6584ac2c4b4ee8e1fca20bffaaa387d8fe2974.tar.gz linux-ff6584ac2c4b4ee8e1fca20bffaaa387d8fe2974.tar.bz2 linux-ff6584ac2c4b4ee8e1fca20bffaaa387d8fe2974.zip |
f2fs: clean up w/ dotdot_name
Just cleanup, no logic changes.
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/namei.c')
-rw-r--r-- | fs/f2fs/namei.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index d0053b0284d8..a9360ee02da1 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -459,7 +459,6 @@ static int __recover_dot_dentries(struct inode *dir, nid_t pino) { struct f2fs_sb_info *sbi = F2FS_I_SB(dir); struct qstr dot = QSTR_INIT(".", 1); - struct qstr dotdot = QSTR_INIT("..", 2); struct f2fs_dir_entry *de; struct page *page; int err = 0; @@ -497,13 +496,13 @@ static int __recover_dot_dentries(struct inode *dir, nid_t pino) goto out; } - de = f2fs_find_entry(dir, &dotdot, &page); + de = f2fs_find_entry(dir, &dotdot_name, &page); if (de) f2fs_put_page(page, 0); else if (IS_ERR(page)) err = PTR_ERR(page); else - err = f2fs_do_add_link(dir, &dotdot, NULL, pino, S_IFDIR); + err = f2fs_do_add_link(dir, &dotdot_name, NULL, pino, S_IFDIR); out: if (!err) clear_inode_flag(dir, FI_INLINE_DOTS); |