Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2234pxu; Thu, 3 Dec 2020 17:25:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwn6eurdCOUNuokSMpfA4VTvoVIMj8o5vj7tZyauywZfWklP/x8ESOAz2l2SfEAvmVvB13p X-Received: by 2002:a17:906:ccc5:: with SMTP id ot5mr4947766ejb.248.1607045124542; Thu, 03 Dec 2020 17:25:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607045124; cv=none; d=google.com; s=arc-20160816; b=GYWCGKo85SaG+xlIo58ZGPiGKc5hV/avs8C5Rpx3Cf5t9YgoO72rxNkyaq5cKXu08n Whw0apiGD+vBkVkZ4PE0h4TsfDW9rFGBU9z1wAbJxMmSq7VHmd221+pGdnE/QscYoGZY qtjICi6Rw69jV6qeG4xQXGrlUkFl8Nl2w/HAfjafc27Mjsy8k0aWGZZplnRiWH7Rwn0Q jIERonXZuxPBSN9iFiKKi0cdD6z1l+/YjHQsMqZ57aRPy/Kxv9rn8vz9Q/+hzzZ4EGIe csPf2sz8q3lCcG1v8NYr4/t75cZSPZd8MHAhKGV26Auopgv4R+xm3zivQFOObqsayWwB ruUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=ZOIyLKH8OLxQZNs1rC+WojdOqwiMIMfpXgCsmfz4zVc=; b=dMXUuPrCFXpjxibiZ938SHFU1s8v4OAiuVA03+v6At/1gYEdJxyN++SS8mFysI7AD+ aYbo3JGjtuwTt0S6AID5bsNrrJTibDCVcIP4Tp7rgxxFapwcwA1eCQ7OafT3UDT5vcdf LDSnNzICN/GSsJfS763P4es/V2fLcBG6zuMMbTPC+NQmyOexjqnYxYR6aIM/EsTwOG2z 1p034ZsC/U5nujNI/iybTbesCJzM9VgG37xo33MLaoz2I4cqKSHEGux+GIdhZ8lprJGk 61/N0desmKkhuQ08EP/GMUBZPjMCusZv7Mdk8DwcalVB0e5EGz+NLBGpkqbFpm3dn3sZ Oetg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si487434ejt.583.2020.12.03.17.25.01; Thu, 03 Dec 2020 17:25:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727852AbgLDBX1 (ORCPT + 99 others); Thu, 3 Dec 2020 20:23:27 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:8939 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbgLDBX0 (ORCPT ); Thu, 3 Dec 2020 20:23:26 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CnFLQ6dw1zhmLg; Fri, 4 Dec 2020 09:22:22 +0800 (CST) Received: from [10.174.176.199] (10.174.176.199) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Fri, 4 Dec 2020 09:22:35 +0800 Subject: Re: [PATCH 2/2] sched: Split the function show_schedstat() To: Mel Gorman CC: , , , , , , , , , Shiyuan Hu , Hewenliang References: <66f73a23-a273-7dff-4202-adc61c3152c8@huawei.com> <20201203094237.GD3306@suse.de> From: Yunfeng Ye Message-ID: Date: Fri, 4 Dec 2020 09:22:34 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20201203094237.GD3306@suse.de> Content-Type: text/plain; charset="iso-8859-15" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.176.199] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/12/3 17:42, Mel Gorman wrote: > On Thu, Dec 03, 2020 at 02:47:14PM +0800, Yunfeng Ye wrote: >> The schedstat include runqueue-specific stats and domain-specific stats, >> so split it into two functions, show_rqstat() and show_domainstat(). >> >> No functional changes. >> >> Signed-off-by: Yunfeng Ye > > Why? > > I could understand if there was a follow-up patch that adjusted some > subset or there was a difference in checking for schedstat_enabled, > locking or inserting new schedstat information. This can happen in the > general case when the end result is easier to review here it seems to be > just moving code around. > The rqstat and domainstat is independent state information. so I think split it into two individual function is clearer. Thanks.