Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp744646imu; Tue, 20 Nov 2018 06:21:44 -0800 (PST) X-Google-Smtp-Source: AJdET5dcRWdsEy2CZNyo2fPQSQGIv3pqVeOpnOiSNVjVZ6Ej7a7jFOHiYC5dJLRoLfWM5R7ETTca X-Received: by 2002:a62:19d5:: with SMTP id 204mr2374033pfz.33.1542723704055; Tue, 20 Nov 2018 06:21:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542723704; cv=none; d=google.com; s=arc-20160816; b=BxKTgPPN3pDzo0dwhkTyY3sw4cAk6y4p1uCx0DlTNv3VKV2KzxvDTSCqI4yJmdIlkA mnYb5dkASzotfWBBxQWFiUKTRSDBrBdq8npJguAcBysyd9YBWzNoU9D1ZTzU97AgLD1y BMp0SvIbhLYPv7eQfbSJdGYUR36UzSgB6R+o5jwiFdJ81VeYBvscgD5V5/MHl86fyyAA F4Lv42oQ0I6+Hm8W9QLb1yZ6PgFb7GJ33w4g6FKH7iaJDoBYafRBT/ly169R+TBLLx9n iN4Nk29ZjEFgwVWwxyFq4EZHVnjooZ2qrKa80SSnXXgGcl4/tifCsXpBA1M/vmCJDC7f peXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=bv76zcGEMdztp6vMNVv8RYu4KV4x36WCc3S13hSJaig=; b=vNWgioGr2/bjUvKJ7fgrRVE+fTUhrz65tmG3/xmouPLb6PLfwE/sqGTe3WnvFGkqWz yKiUItiOlaGCymd4/J9GRFO5OKyr2qg4jujiah2nWDfUciNUJXug/+d5rHqbLJha+Smj qYWFQbyPaabn3L7U1WYJMwvrVW6G9GWwG876ZYThg1v9kqi9w0BHPzPuCZSbZYZF9BhK V9SatxVi8MI03tLzcHRESWUwao/3xJrQDKUbZydzc5Da3ymWpUax2qdoAv1b1+eXOa8t P8IR0WQAQB/STcBEL3RPWOBXLYamBJidDRNX3MBMy48atuScMbrqovJW399Yw3Cqgeyi 0YnA== 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 ay4si11305926plb.235.2018.11.20.06.21.29; Tue, 20 Nov 2018 06:21:44 -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 S1729497AbeKUAto (ORCPT + 99 others); Tue, 20 Nov 2018 19:49:44 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:15125 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726005AbeKUAto (ORCPT ); Tue, 20 Nov 2018 19:49:44 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id DCA01FBA3497; Tue, 20 Nov 2018 22:20:18 +0800 (CST) Received: from localhost.localdomain (10.175.124.28) by smtp.huawei.com (10.3.19.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 20 Nov 2018 22:20:14 +0800 From: Gao Xiang To: Greg Kroah-Hartman , CC: LKML , , "Chao Yu" , Miao Xie , , Gao Xiang Subject: [PATCH 01/10] staging: erofs: fix `trace_erofs_readpage' position Date: Tue, 20 Nov 2018 22:34:16 +0800 Message-ID: <20181120143425.43637-2-gaoxiang25@huawei.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181120143425.43637-1-gaoxiang25@huawei.com> References: <20181120143425.43637-1-gaoxiang25@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org `trace_erofs_readpage' should be placed in .readpage() rather than in the internal `z_erofs_do_read_page'. Fixes: 284db12cfda3 ("staging: erofs: add trace points for reading zipped data") Reviewed-by: Chen Gong Reviewed-by: Chao Yu Signed-off-by: Gao Xiang --- drivers/staging/erofs/unzip_vle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/erofs/unzip_vle.c b/drivers/staging/erofs/unzip_vle.c index 6a283f618f46..ede3383ac601 100644 --- a/drivers/staging/erofs/unzip_vle.c +++ b/drivers/staging/erofs/unzip_vle.c @@ -598,8 +598,6 @@ static int z_erofs_do_read_page(struct z_erofs_vle_frontend *fe, unsigned int cur, end, spiltted, index; int err = 0; - trace_erofs_readpage(page, false); - /* register locked file pages as online pages in pack */ z_erofs_onlinepage_init(page); @@ -1288,6 +1286,8 @@ static int z_erofs_vle_normalaccess_readpage(struct file *file, int err; LIST_HEAD(pagepool); + trace_erofs_readpage(page, false); + #if (EROFS_FS_ZIP_CACHE_LVL >= 2) f.cachedzone_la = (erofs_off_t)page->index << PAGE_SHIFT; #endif -- 2.14.4