From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-72.mta0.migadu.com [91.218.175.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7137409E12 for ; Sun, 18 Oct 2026 17:43:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792345429; cv=none; b=n1t0HQmwz94VskeSsCAL5ZTCaZxjLcd02DUEtOQfmKsJXQjAEsHf3P80H05ItHtESShW2b7mhgghAZ/r18k77QmZ9YmjetLRNFCPrSTYr9PofZiS73LgDGPkmNuQOqQAUfgVUYaMpnFTGynGepDWrBjMim74zyfbtUWMqMm378o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792345429; c=relaxed/simple; bh=SEryhHEn2ByopfBRHkq9FPldXMMAcOdNRkbc6JOUSCU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HTgCUxWTdDF1TnNB6qNdoBAQgubqySUIzseeUk5nVOhw0owwc1p31HzFeKYZKIlM8BrxF5bwx3Ll38udGRRISwVPZNzhDuFHHjRKVKUMYjuOzQqKHPNZIFBo+dQgi7VbbYhbW37x+PKhduANbyzdT/RRCSIr94W1cLk1mMqLpfM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=HRawQOep; arc=none smtp.client-ip=91.218.175.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="HRawQOep" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=SEryhHEn2ByopfBRHkq9FPldXMMAcOdNRkbc6JOUSCU=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1792345423; v=1; x=1792950223; b=HRawQOepB1kKHztcUCHDA8+8UMQrGh3cskwa93r1S5nrlewfDAgEcYVoc31H3rYFS2YEbkoS NYMRR7JSPS988J5rkvqak2LpaOp0WEOZZRbT1eLppcRAb7qY+sxGiP5tdYMrCeSZWulXZqvb13X ZWqSwPgYnS+71kRIQgPYRWUs= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 2e23c358c62a656b; Sun, 18 Oct 2026 17:43:43 +0000 X-Mizu-Trace-ID: 2e23c358c62a656b X-Migadu-Flow: FLOW_OUT Date: Mon, 19 Oct 2026 01:44:24 +0800 From: Chen Yu To: Reinette Chatre Cc: tony.luck@intel.com, ben.horgan@arm.com, james.morse@arm.com, Dave.Martin@arm.com, babu.moger@amd.com, bp@alien8.de, tglx@linutronix.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, fustini@kernel.org, fenghuay@nvidia.com, peternewman@google.com, yu.c.chen@intel.com, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v2 5/5] fs/resctrl: Drop unnecessary parameter from resctrl_io_alloc_parse_line() Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Oct 07, 2026 at 02:06:47PM -0700, Reinette Chatre wrote: > > resctrl_io_alloc_parse_line() parses a line written to the io_alloc_cbm file. > It receives both a schema and a pointer to the schema's resource. Its only > caller looks up the resource from the schema just to pass both. > > Passing the resource separately is redundant and allows a caller to pass a > resource that does not belong to the schema. parse_line(), which parses lines > written to the schemata file, already receives only the schema and determines > the resource from it. > > Pass only the schema to resctrl_io_alloc_parse_line() and have it determine > the resource itself, matching parse_line() and in preparation for passing > additional information when supporting multiple controls. > > No functional change. > > Signed-off-by: Reinette Chatre > Reviewed-by: Ben Horgan > Reviewed-by: Chen Yu thanks, Chenyu