dir.c (b97a9b5da891ab6aff5a6a19c569c9c4c5563d48) dir.c (a014e037be26b5c9ee6fb4e49e7804141cf3bb89)
1/*
2 * fs/f2fs/dir.c
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 324 unchanged lines hidden (view full) ---

333static struct page *init_inode_metadata(struct inode *inode,
334 struct inode *dir, const struct qstr *name)
335{
336 struct f2fs_sb_info *sbi = F2FS_SB(dir->i_sb);
337 struct page *page;
338 int err;
339
340 if (is_inode_flag_set(F2FS_I(inode), FI_NEW_INODE)) {
1/*
2 * fs/f2fs/dir.c
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 324 unchanged lines hidden (view full) ---

333static struct page *init_inode_metadata(struct inode *inode,
334 struct inode *dir, const struct qstr *name)
335{
336 struct f2fs_sb_info *sbi = F2FS_SB(dir->i_sb);
337 struct page *page;
338 int err;
339
340 if (is_inode_flag_set(F2FS_I(inode), FI_NEW_INODE)) {
341 page = new_inode_page(inode, name);
341 page = new_inode_page(inode);
342 if (IS_ERR(page))
343 return page;
344
345 if (S_ISDIR(inode->i_mode)) {
346 err = make_empty_dir(inode, dir, page);
347 if (err)
348 goto error;
349 }

--- 381 unchanged lines hidden ---
342 if (IS_ERR(page))
343 return page;
344
345 if (S_ISDIR(inode->i_mode)) {
346 err = make_empty_dir(inode, dir, page);
347 if (err)
348 goto error;
349 }

--- 381 unchanged lines hidden ---