From nobody Sat Jun 13 08:47:22 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2CC3351C20; Fri, 8 May 2026 10:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778237804; cv=none; b=mfl2SHMAodgWvw+BZGPDMRZ/sDxAMO7zJvq73wAzarpk6Iq1/3+ri1jICHZwBpXxevPiI/wCyC8hHHZr6ck68DCS5H7qi9q8NPLlv9tBnJgb21lQoNBgFSxrquYxl0C9xz/ZWFCcez8fZixuB8R6/347/HEFAqsYx5x+4ROpa+Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778237804; c=relaxed/simple; bh=2i57CmnS9VrafrqK85dha+3xvD6TEqYj9VW9qnN2SlQ=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=Bpc+9ASh8QoSoYqCWScqlfYA+nXrIH5MudL7g/yj8YusBY2Xky6mXTnwyul07lX2bj/oKTZ39T2upA5SkA6brkqBxzdq5niERNjzMVu5oUM5Nzmi+xeRI0dQwCe/S3UliadQTa7tBOGJkP0c3munCkGdweWspTEUKY07H4f3SwE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=y4J2/W5p; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=dTV57vc5; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="y4J2/W5p"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dTV57vc5" Date: Fri, 08 May 2026 10:56:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1778237801; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hYv9uNQprrsI3Pwxm9AXAiWTJYTXiRr+gmqIThavu2o=; b=y4J2/W5pQpbu4oVn5HoJrSBQJN6zR9AVAkyLMW6NDUVCshMmYziH+SZKZwyoG2b4e9w1od yGfiASj971X2NpXcaS6eVbZXnq8lFqDcfdvkdjvxPUnxgf7f8PV2MljW9KBD3oq7Yl3Uba pqxQtVPufF4jTpHjvIVElFVmGX/5+flhckuymEFR8HyTgvSuFSSyuMxoQSYriN1Cs07yG1 cldbH5/6H/Q7bOK4TotEZdXqj5c01RvxhEXhokSnQO723KGgfloMvx2db3Pk4BJjfEoJF9 NraZT+lD0mx2nr7t7KmAD7IC0mcq5mxqJyCO91hFMhtqhGJXtxm4PCQLz7MTcQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1778237801; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hYv9uNQprrsI3Pwxm9AXAiWTJYTXiRr+gmqIThavu2o=; b=dTV57vc532IMCbqoRH8yZG2pm6eiz2GMrNKYtfZlo89WwLpqXdgUYcAXVFyG5v5gGF83Fm j3qomAebbVeOm+Dg== From: "tip-bot2 for Ben Horgan" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cache] fs/resctrl: Tidy up the error path in resctrl_mkdir_event_configs() Cc: Ben Horgan , "Borislav Petkov (AMD)" , Reinette Chatre , Babu Moger , x86@kernel.org, linux-kernel@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177823779971.864.11554010086383888889.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/cache branch of tip: Commit-ID: 7625632fed431ddd655e839c302165536553f767 Gitweb: https://git.kernel.org/tip/7625632fed431ddd655e839c302165536= 553f767 Author: Ben Horgan AuthorDate: Wed, 06 May 2026 09:28:49 +01:00 Committer: Borislav Petkov (AMD) CommitterDate: Wed, 06 May 2026 19:06:52 +02:00 fs/resctrl: Tidy up the error path in resctrl_mkdir_event_configs() The error path in resctrl_mkdir_event_configs() is unnecessarily complicated. Simplify it to just return directly on error. Signed-off-by: Ben Horgan Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Reinette Chatre Reviewed-by: Babu Moger Tested-by: Babu Moger Link: https://lore.kernel.org/r/20260506082855.3694761-1-ben.horgan@arm.com --- fs/resctrl/rdtgroup.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/fs/resctrl/rdtgroup.c b/fs/resctrl/rdtgroup.c index 5dfdaa6..eca3bb6 100644 --- a/fs/resctrl/rdtgroup.c +++ b/fs/resctrl/rdtgroup.c @@ -2331,22 +2331,19 @@ static int resctrl_mkdir_event_configs(struct rdt_r= esource *r, struct kernfs_nod continue; =20 kn_subdir2 =3D kernfs_create_dir(kn_subdir, mevt->name, kn_subdir->mode,= mevt); - if (IS_ERR(kn_subdir2)) { - ret =3D PTR_ERR(kn_subdir2); - goto out; - } + if (IS_ERR(kn_subdir2)) + return PTR_ERR(kn_subdir2); =20 ret =3D rdtgroup_kn_set_ugid(kn_subdir2); if (ret) - goto out; + return ret; =20 ret =3D rdtgroup_add_files(kn_subdir2, RFTYPE_ASSIGN_CONFIG); if (ret) - break; + return ret; } =20 -out: - return ret; + return 0; } =20 static int rdtgroup_mkdir_info_resdir(void *priv, char *name,