From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 8933E235347 for ; Wed, 11 Jun 2025 07:39:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749627595; cv=none; b=cMQyCsUTMoLaS06ZOanF60Ib4A4CGHlY91HKdERhHQ5UyEsJ4PvMh/axbH7BueGDVQBh3e9ARDziSuNCUvVCDwyLy5aPP7Mz9Pn+veRdvgQwj5U9mH2a4BI+dkF8WPPxhyR/YHMsZY8oO3VfeSWYruF3alSmfM3f2mzcHWaezBA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749627595; c=relaxed/simple; bh=voCkIMKUZo8L4D/DAEVGka+lMbZ9q6uLMHsZHrNZ8U4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FqCRtKfclbpoLIR7EhqXbUZyOlp7tEL08Qo5WfMkOxa+nYHvvnY4iksFjpLALtKF/r23fE8ArnxYnx87eH2QUP20kTrQfQRRaAsaXDhtjMvFH8aOtNvm9tyKXtW0ooYAftS81pMCHWRNgZX9br159NXigIG1+q3B5ELeY/RK8w4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=uxP3fA0q; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=DO1zx4eA; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=uxP3fA0q; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=DO1zx4eA; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="uxP3fA0q"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="DO1zx4eA"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="uxP3fA0q"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="DO1zx4eA" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id BA49C1F769; Wed, 11 Jun 2025 07:39:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1749627591; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=J3Y1wXhNXQFw/kxdT7QOGHFJkCiQ1oUCutTM2v/mYUM=; b=uxP3fA0quVFpZxrF+amI0m/H2NjRptq2OIAk+cQFSovy8XeOnU9oNRcg5uotoWNmd3iF1s 2hsbZixknIaSNG0zBtFEpsSMlt9nOoeifPwOAoAsdUm1XrObgeA3Nii854T1zBA+YasK5x JJH624Ft48mrlq6I3RiKGEy6nsrcyvE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1749627591; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=J3Y1wXhNXQFw/kxdT7QOGHFJkCiQ1oUCutTM2v/mYUM=; b=DO1zx4eABPFk8HaEkJUZAVO5zevNtqGA5lwGur1j/kj3PtdlsNhbSvlOTFaGgX/b/+IBx0 5mYCtT9E8TgY/jDw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1749627591; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=J3Y1wXhNXQFw/kxdT7QOGHFJkCiQ1oUCutTM2v/mYUM=; b=uxP3fA0quVFpZxrF+amI0m/H2NjRptq2OIAk+cQFSovy8XeOnU9oNRcg5uotoWNmd3iF1s 2hsbZixknIaSNG0zBtFEpsSMlt9nOoeifPwOAoAsdUm1XrObgeA3Nii854T1zBA+YasK5x JJH624Ft48mrlq6I3RiKGEy6nsrcyvE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1749627591; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=J3Y1wXhNXQFw/kxdT7QOGHFJkCiQ1oUCutTM2v/mYUM=; b=DO1zx4eABPFk8HaEkJUZAVO5zevNtqGA5lwGur1j/kj3PtdlsNhbSvlOTFaGgX/b/+IBx0 5mYCtT9E8TgY/jDw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 9C4C9139CE; Wed, 11 Jun 2025 07:39:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id Uyt6I8YySWh+WwAAD6G6ig (envelope-from ); Wed, 11 Jun 2025 07:39:50 +0000 Date: Wed, 11 Jun 2025 09:39:49 +0200 From: Oscar Salvador To: Shivank Garg Cc: mhiramat@kernel.org, oleg@redhat.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, kan.liang@linux.intel.com, willy@infradead.org, rostedt@goodmis.org, apopple@nvidia.com, david@redhat.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH V2] mm: use folio_expected_ref_count() helper for reference counting Message-ID: References: <20250611052706.515408-2-shivankg@amd.com> Precedence: bulk X-Mailing-List: linux-trace-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: <20250611052706.515408-2-shivankg@amd.com> X-Spam-Flag: NO X-Spam-Score: -4.30 X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_TWELVE(0.00)[22]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,imap1.dmz-prg2.suse.org:helo] X-Spam-Level: On Wed, Jun 11, 2025 at 05:27:07AM +0000, Shivank Garg wrote: > Replace open-coded folio reference count calculations with the > folio_expected_ref_count(). > > No functional changes intended. > > Acked-by: David Hildenbrand > Signed-off-by: Shivank Garg Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE Labs