Commit ff6584ac authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim

f2fs: clean up w/ dotdot_name

Just cleanup, no logic changes.
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent e26b6d39
...@@ -459,7 +459,6 @@ static int __recover_dot_dentries(struct inode *dir, nid_t pino) ...@@ -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 f2fs_sb_info *sbi = F2FS_I_SB(dir);
struct qstr dot = QSTR_INIT(".", 1); struct qstr dot = QSTR_INIT(".", 1);
struct qstr dotdot = QSTR_INIT("..", 2);
struct f2fs_dir_entry *de; struct f2fs_dir_entry *de;
struct page *page; struct page *page;
int err = 0; int err = 0;
...@@ -497,13 +496,13 @@ static int __recover_dot_dentries(struct inode *dir, nid_t pino) ...@@ -497,13 +496,13 @@ static int __recover_dot_dentries(struct inode *dir, nid_t pino)
goto out; goto out;
} }
de = f2fs_find_entry(dir, &dotdot, &page); de = f2fs_find_entry(dir, &dotdot_name, &page);
if (de) if (de)
f2fs_put_page(page, 0); f2fs_put_page(page, 0);
else if (IS_ERR(page)) else if (IS_ERR(page))
err = PTR_ERR(page); err = PTR_ERR(page);
else 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: out:
if (!err) if (!err)
clear_inode_flag(dir, FI_INLINE_DOTS); clear_inode_flag(dir, FI_INLINE_DOTS);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment