Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp792626imm; Wed, 17 Oct 2018 08:23:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV63XR/biVF4H1VzvsEBafGzzDQMqvSTul7SCkiUbMXV5xdpoy8kharshre7LnSHaTdaUeDKy X-Received: by 2002:a17:902:7242:: with SMTP id c2-v6mr26492181pll.304.1539789810237; Wed, 17 Oct 2018 08:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539789810; cv=none; d=google.com; s=arc-20160816; b=Ku2tQZ+Iwrv07ZjP6wn+sqZ9+tR2kz9sI/0ivm2Qkj8SuhUjzSyH9wJQryNbQSMJIY AlPJ2FnhrgljcV6kejknfnjBw2lpaoascGE0b/aHEJ8pP6DJ+bf2AN7Xqrk4K/zYmDs4 DmhUjumRZNbEe8yAXmKgwzfboao0N63MLPzYaA0GFXSMqhxstjlk9uIKWsboyfWdLtZt YnPIygI70tCeJUDYa0da3T2liCjyGyLfrSallYa/IAmNMOuZm88bFwp/TDdwShp6tXLQ qhRGlv3jWLi5FNumtyVeGMi2MuvY+OK6mFtcCTZv6/65VDXhhmCHDD7zHVLr/78g25ew gvsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=k2lrD2ltmIQFfazsiBAZnFtJBVRIHK2YOdqTQl6HaQQ=; b=vpz59rMyp2Q75p/yjJamMgWgk46BcxhXkqJkm1VpobPUTyEpbMaGHA0IW5dhgvEXOm ShpjbDJatUd7i0nHTdouHL442l9172vOeJipHHRS/oecJ29pbgaP4LEiWprKyVzcu1hn oE+KLoZAF9WmorX2HpHZoVwkdPfhakRtsUtikSvMV59uu28PZbyfFUztwR4lmVgszzX5 pGCYotzl3Nt7BLFqvAb21GrbdjOPgO12vzt9+no0LVPV3yBhyumAcreIbpBXNB26Pdpa 8lZLfnXLS6jY4AOSXnFsPDZfW+D/lPc+ecj5h8JVy6+n4nsb0NsviY0UmD10doMQF68A Hh/Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1-v6si16780804pgp.376.2018.10.17.08.23.14; Wed, 17 Oct 2018 08:23:30 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727985AbeJQXQZ (ORCPT + 99 others); Wed, 17 Oct 2018 19:16:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40004 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQXQZ (ORCPT ); Wed, 17 Oct 2018 19:16:25 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BF084C037F90; Wed, 17 Oct 2018 15:20:14 +0000 (UTC) Received: from llong.remote.csb (dhcp-17-8.bos.redhat.com [10.18.17.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 34C2B19E6C; Wed, 17 Oct 2018 15:20:09 +0000 (UTC) Subject: Re: [PATCH v14 12/12] cpuset: Show descriptive text when reading cpuset.sched.partition To: Tejun Heo Cc: Li Zefan , Johannes Weiner , Peter Zijlstra , Ingo Molnar , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@fb.com, pjt@google.com, luto@amacapital.net, Mike Galbraith , torvalds@linux-foundation.org, Roman Gushchin , Juri Lelli , Patrick Bellasi , Tom Hromatka References: <1539635377-22335-1-git-send-email-longman@redhat.com> <1539635377-22335-13-git-send-email-longman@redhat.com> <20181017150836.GS270328@devbig004.ftw2.facebook.com> From: Waiman Long Organization: Red Hat Message-ID: <55f76a9b-9e6d-0e5f-c07a-c94777555d4e@redhat.com> Date: Wed, 17 Oct 2018 11:20:08 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20181017150836.GS270328@devbig004.ftw2.facebook.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 17 Oct 2018 15:20:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/17/2018 11:08 AM, Tejun Heo wrote: > On Mon, Oct 15, 2018 at 04:29:37PM -0400, Waiman Long wrote: >> Currently, cpuset.sched.partition returns the values, 0, 1 or -1 on >> read. A person who is not familiar with the partition code may not >> understand what they mean. >> >> In order to make cpuset.sched.partition more user-friendly, it will >> now display the following descriptive text on read: >> >> "normal" - A normal cpuset, not a partition root >> "partition" - A partition root >> "partition invalid" - An invalid partition root >> >> Suggested-by: Tejun Heo >> Signed-off-by: Waiman Long > Can you also make this consistent when writing to the file? > > Thanks. > Yes, sure. -Longman