From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaegeuk Kim Subject: [f2fs-dev] [PATCH 02/15] f2fs: remove unnecessary flag set Date: Mon, 20 May 2013 12:32:16 +0900 Message-ID: <1369020743-18520-2-git-send-email-jaegeuk.kim@samsung.com> References: <1369020743-18520-1-git-send-email-jaegeuk.kim@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UeGr3-00081g-1L for linux-f2fs-devel@lists.sourceforge.net; Mon, 20 May 2013 03:33:45 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1UeGr1-000513-F4 for linux-f2fs-devel@lists.sourceforge.net; Mon, 20 May 2013 03:33:45 +0000 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MN2000TKV7K42I0@mailout3.samsung.com> for linux-f2fs-devel@lists.sourceforge.net; Mon, 20 May 2013 12:33:34 +0900 (KST) In-reply-to: <1369020743-18520-1-git-send-email-jaegeuk.kim@samsung.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net If an inode is recovered with its dentry, it will not invoke __f2fs_add_link, since the recovery routine checks its dentry before calling __f2fs_add_link. Signed-off-by: Jaegeuk Kim --- fs/f2fs/recovery.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index 2941987..993b601 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c @@ -125,11 +125,7 @@ static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head) goto next; entry = get_fsync_inode(head, ino_of_node(page)); - if (entry) { - if (IS_INODE(page) && is_dent_dnode(page)) - set_inode_flag(F2FS_I(entry->inode), - FI_INC_LINK); - } else { + if (!entry) { if (IS_INODE(page) && is_dent_dnode(page)) { err = recover_inode_page(sbi, page); if (err) -- 1.8.1.3.566.gaa39828 ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d