Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755517AbbLADo7 (ORCPT ); Mon, 30 Nov 2015 22:44:59 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:56275 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755059AbbLADo5 (ORCPT ); Mon, 30 Nov 2015 22:44:57 -0500 X-AuditID: cbfee61a-f79266d000003652-8c-565d17b8c0e7 From: Chao Yu To: Jaegeuk Kim Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] f2fs: clean up argument of recover_data Date: Tue, 01 Dec 2015 11:43:59 +0800 Message-id: <000301d12bea$a508bd10$ef1a3730$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AdEr6muEPpQiIevOTWmCcwjr0tHaUQ== Content-language: zh-cn X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsVy+t9jAd0d4rFhBvMeCVk8WT+L2eLSIneL y7vmsDkwe2xa1cnmsXvBZyaPz5vkApijuGxSUnMyy1KL9O0SuDJeL9zIVtDFVXFy9hy2BsZZ HF2MnBwSAiYSjUumMULYYhIX7q1n62Lk4hASWMooseL+fCYI5xWjxLG735lBqtgEVCSWd/xn ArFFgOxDiy6zg9jMAh4SjR3fWbsYOTiEBWwkFlwJAwmzCKhK7P1xmg3E5hWwlLjRfoMJwhaU +DH5HgtEq5bE+p3HmSBseYnNa94yQxykILHj7GtGiFV6EhPfXmeDqBGX2HjkFssERoFZSEbN QjJqFpJRs5C0LGBkWcUokVqQXFCclJ5rmJdarlecmFtcmpeul5yfu4kRHMTPpHYwHtzlfohR gINRiYf3wKqYMCHWxLLiytxDjBIczEoivKt/A4V4UxIrq1KL8uOLSnNSiw8xSnOwKInz1l6K DBMSSE8sSc1OTS1ILYLJMnFwSjUwMjLHeW1itbryMiKv7oCQgPhsofbXH+JaOUR/3PUL1pfh 98jVdFdkWPB1u+rXLdseL7van2io9C66b653mbStbFC3okXLg01WUQ8OMBpvVY1nOzS3tWxT 2OIpMl1/l31W/sYm/1tmWUD57hOft4m1zWP4smDByYCb7cnLtDsk7iVcVju/I0hQiaU4I9FQ i7moOBEATeP7gV4CAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1491 Lines: 49 In recover_data, value of argument 'type' will be CURSEG_WARM_NODE all the time, remove it for cleanup. Signed-off-by: Chao Yu --- fs/f2fs/recovery.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index cbf74f4..3ab9b92 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c @@ -459,8 +459,7 @@ out: return err; } -static int recover_data(struct f2fs_sb_info *sbi, - struct list_head *head, int type) +static int recover_data(struct f2fs_sb_info *sbi, struct list_head *head) { unsigned long long cp_ver = cur_cp_version(F2FS_CKPT(sbi)); struct curseg_info *curseg; @@ -469,7 +468,7 @@ static int recover_data(struct f2fs_sb_info *sbi, block_t blkaddr; /* get node pages in the current segment */ - curseg = CURSEG_I(sbi, type); + curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); while (1) { @@ -556,7 +555,7 @@ int recover_fsync_data(struct f2fs_sb_info *sbi) need_writecp = true; /* step #2: recover data */ - err = recover_data(sbi, &inode_list, CURSEG_WARM_NODE); + err = recover_data(sbi, &inode_list); if (!err) f2fs_bug_on(sbi, !list_empty(&inode_list)); out: -- 2.6.3 -- 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/