Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755416Ab3ETDfz (ORCPT ); Sun, 19 May 2013 23:35:55 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:41635 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755236Ab3ETDdg (ORCPT ); Sun, 19 May 2013 23:33:36 -0400 X-AuditID: cbfee690-b7efc6d000006d92-07-5199998e6789 From: Jaegeuk Kim Cc: Jaegeuk Kim , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: [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> X-Mailer: git-send-email 1.8.1.3.566.gaa39828 In-reply-to: <1369020743-18520-1-git-send-email-jaegeuk.kim@samsung.com> References: <1369020743-18520-1-git-send-email-jaegeuk.kim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsVy+t8zA92+mTMDDWbu5LG4vusvk8WlRe4W e/aeZLG4vGsOmwOLx+4Fn5k8+rasYvT4vEkugDmKyyYlNSezLLVI3y6BK+Pcu+lsBf3sFZPe PWFrYHzE2sXIySEhYCLR9+I0C4QtJnHh3nq2LkYuDiGBZYwSqxv+ATkcYEVrlyaB1AgJLGKU ePY9C6KmjUli+e8fLCA1bALaEpv3G4DUiAgwSyyYep4RpIZZYAKjxP9F78EWCAtYSNz8cIIZ pJ5FQFVi/WRzkDCvgLvE/cfL2CFu0JVY/f85mM0p4CGx9e4pRpByIaCa1+dKQEZKCHxnkzhz up8RpIZFQEDi2+RDLBBnykpsOsAMMUZS4uCKGywTGIUXMDKsYhRNLUguKE5KLzLRK07MLS7N S9dLzs/dxAgJ1gk7GO8dsD7EmAw0biKzlGhyPjDY80riDY3NjCxMTUyNjcwtzUgTVhLnVW+x DhQSSE8s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CADC870PJAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1128 Lines: 33 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/