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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4149DC43219 for ; Fri, 4 Nov 2022 09:17:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229496AbiKDJRk (ORCPT ); Fri, 4 Nov 2022 05:17:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbiKDJRj (ORCPT ); Fri, 4 Nov 2022 05:17:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7E286354; Fri, 4 Nov 2022 02:17:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6EA75B82C4D; Fri, 4 Nov 2022 09:17:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BC1DC433C1; Fri, 4 Nov 2022 09:17:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1667553456; bh=SHbE2LcdkBiwyRM/AvlDZQO5hSel5lKZUzSHsY5egTI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=s0Y35Tx6AgDHYPTZqZKJamKbZOHDz1uMAchts8vfXYcjIHFhT+kfGD6yAbDsj5ZtJ mrJD75Csnm5uib1QAG4++hwbBoKfPjcGUURWT/7/Q6wiRxx62gC6owoXlu5RzD5/nh qOTUlO0T8ZsO09Oie4Dubv3Av+jAeNxNV+lLR8QI= Date: Fri, 4 Nov 2022 18:18:15 +0900 From: Greg KH To: TGSP Cc: rafael@kernel.org, len.brown@intel.com, pavel@ucw.cz, huanglei@kylinos.cn, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, xiongxin , stable@vger.kernel.org Subject: Re: [PATCH v2 1/2] PM: hibernate: fix spelling mistake for annotation Message-ID: References: <20221104054119.1946073-1-tgsp002@gmail.com> <20221104054119.1946073-2-tgsp002@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221104054119.1946073-2-tgsp002@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Fri, Nov 04, 2022 at 01:41:18PM +0800, TGSP wrote: > From: xiongxin > > The actual calculation formula in the code below is: > > max_size = (count - (size + PAGES_FOR_IO)) / 2 > - 2 * DIV_ROUND_UP(reserved_size, PAGE_SIZE); > > But function comments are written differently, the comment is wrong? > > By the way, what exactly do the "/ 2" and "2 *" mean? > > Cc: stable@vger.kernel.org > Signed-off-by: xiongxin Please do not use an anonymous gmail account for your corporate work like this. Work with your company email admins to allow you to send patches from that address so that they can be verified to actually come from there. thanks, greg k-h