aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/dir.c')
-rw-r--r--fs/f2fs/dir.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index 89ecb3785321..d1bb2606b313 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -276,6 +276,21 @@ static void init_dent_inode(const struct qstr *name, struct page *ipage)
276 set_page_dirty(ipage); 276 set_page_dirty(ipage);
277} 277}
278 278
279int update_dent_inode(struct inode *inode, const struct qstr *name)
280{
281 struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb);
282 struct page *page;
283
284 page = get_node_page(sbi, inode->i_ino);
285 if (IS_ERR(page))
286 return PTR_ERR(page);
287
288 init_dent_inode(name, page);
289 f2fs_put_page(page, 1);
290
291 return 0;
292}
293
279static int make_empty_dir(struct inode *inode, 294static int make_empty_dir(struct inode *inode,
280 struct inode *parent, struct page *page) 295 struct inode *parent, struct page *page)
281{ 296{