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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index 6da77e5c753b..f815ca0c5819 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -342,11 +342,11 @@ static struct page *init_inode_metadata(struct inode *inode,
342 342
343 err = f2fs_init_acl(inode, dir, page); 343 err = f2fs_init_acl(inode, dir, page);
344 if (err) 344 if (err)
345 goto error; 345 goto put_error;
346 346
347 err = f2fs_init_security(inode, dir, name, page); 347 err = f2fs_init_security(inode, dir, name, page);
348 if (err) 348 if (err)
349 goto error; 349 goto put_error;
350 350
351 wait_on_page_writeback(page); 351 wait_on_page_writeback(page);
352 } else { 352 } else {
@@ -370,8 +370,9 @@ static struct page *init_inode_metadata(struct inode *inode,
370 } 370 }
371 return page; 371 return page;
372 372
373error: 373put_error:
374 f2fs_put_page(page, 1); 374 f2fs_put_page(page, 1);
375error:
375 remove_inode_page(inode); 376 remove_inode_page(inode);
376 return ERR_PTR(err); 377 return ERR_PTR(err);
377} 378}