Received: by 10.223.176.5 with SMTP id f5csp1848805wra; Thu, 8 Feb 2018 04:36:02 -0800 (PST) X-Google-Smtp-Source: AH8x226QaDFJ4fjLFRcZMbjOfQ3WNGj4ditfKxuEJ1Eg5CdlDacO/LZmIJe7XMBnxtRdB7Fmbj+C X-Received: by 10.99.123.92 with SMTP id k28mr412621pgn.71.1518093362857; Thu, 08 Feb 2018 04:36:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518093362; cv=none; d=google.com; s=arc-20160816; b=LDOOo/aHXiV8+GfwRoLPjsgPZJBBhrqdx/SYNmfLov5hLSToCciM8JmxFdnv1pSwni efJGItdkDRs9qAwJCjh3xauo3nRG4PagG40Oqhq0fD2HfsVHnTF7qShb0eUbO5xQXvZi xFgpF2FpJbM031glm97zmXxnEze5E81yz17pf27/3s8npipV+BqLI39WpOJJ5jlmaQw3 XkF1a0zHTHoVMERdsSGKNkl5WJF3s46Ahj0Z2VedSsNXUw84S+0t1SmCy5lEXhrNv49z 3PY1r9/h6KDolgB6abZSjW75b0MtQrBcmQHdkzu9OfrZV77vN+6nORMzLepXYjD3oEpT lCww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=6psSF0lxnVgY0jrl4qgtPlVlQ2JjDvvlMMfmczS1XLI=; b=DDGRwbHnNU2dhCnNXy/Tp1PQl98YzXEbuFMJTp8mWfNcu02CkW6TvnIsIMtA6McyU1 BDFePjvsz6zaqeF11N04j7voD/nQrukGeXNl36ohvxSaAOaIaphO3fHRw5tRAwSJiEVO 174LdmoDjFB8Bpod5GEMv7taHq2PRuAhEHKvHJuBE0+qnTP49GMuMeSYduIB7aicWeoM D7lFMY3PeSIvE2F9g1Soj9N3648HvuLSDHWaOX+d9/JD3NbnHU3zujQV9eWqU05vT1qH E+Bs6ReeuBc8VT/mlVgXK1N6cXZ7aa+oucgNWXEMohUG8YLEqYk43XIj97cq4ntqP+k5 TKGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j12si2138193pgn.353.2018.02.08.04.35.49; Thu, 08 Feb 2018 04:36:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752240AbeBHMeI (ORCPT + 99 others); Thu, 8 Feb 2018 07:34:08 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:4775 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752212AbeBHMeE (ORCPT ); Thu, 8 Feb 2018 07:34:04 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 2400A2DD84142; Thu, 8 Feb 2018 20:33:49 +0800 (CST) Received: from huawei.com (10.107.193.250) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.361.1; Thu, 8 Feb 2018 20:33:41 +0800 From: Yunlong Song To: , , , , CC: , , , , , Subject: [PATCH] f2fs: set_code_data in move_data_block Date: Thu, 8 Feb 2018 20:33:37 +0800 Message-ID: <1518093217-123705-1-git-send-email-yunlong.song@huawei.com> X-Mailer: git-send-email 1.8.5.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.193.250] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Yunlong Song --- fs/f2fs/gc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index b9d93fd..2095630 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -692,6 +692,7 @@ static void move_data_block(struct inode *inode, block_t bidx, fio.op = REQ_OP_WRITE; fio.op_flags = REQ_SYNC; fio.new_blkaddr = newaddr; + set_cold_data(fio.page); err = f2fs_submit_page_write(&fio); if (err) { if (PageWriteback(fio.encrypted_page)) -- 1.8.5.2