From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 584EFECDE38 for ; Wed, 17 Oct 2018 15:20:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1EC0021530 for ; Wed, 17 Oct 2018 15:20:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1EC0021530 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727989AbeJQXQZ (ORCPT ); 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