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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D1B7C433EF for ; Wed, 20 Oct 2021 23:14:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0DD5461130 for ; Wed, 20 Oct 2021 23:14:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231173AbhJTXQq (ORCPT ); Wed, 20 Oct 2021 19:16:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:48328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbhJTXQp (ORCPT ); Wed, 20 Oct 2021 19:16:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3FE85610A2; Wed, 20 Oct 2021 23:14:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634771670; bh=oi8a3JG/XkmKsI8mfGwa2zI65CTPnyciySVi1vE9Ta8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DuiD96fQvwo7N0m8LmOuS8+Hdz9ngko76+qhxxL2fxsJXaxpKzVtaYiPGQsfmlYGj gPMeHy1ITuu+kEC5Qi3LLDIF206EN3X7NGynD9mVS+1u3nLjlUuQ5k9IwpjXhSxOB8 VX0OTArOjQ12nYLnGhUWaCRnXFz/U+udE15+x8J3IbiBvlU9PC8DzeC/Gwn8SE4zfL IWxYHkZc/0jbT9uESoX3O9UxsIuA//e50GJJdYUM8Eu/NQeQPyHrSKNlQsZ90hnjOD CzJIgA0PlB23s8aVADlchl99MhNmJmenLIJoRjpLftDol6l/OLkgAv7kaHxYJSIgLy 6EVLMm3gnz3LA== Date: Wed, 20 Oct 2021 18:19:10 -0500 From: "Gustavo A. R. Silva" To: Jan Kara Cc: Len Baker , Alexander Viro , Kees Cook , linux-fsdevel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] writeback: prefer struct_size over open coded arithmetic Message-ID: <20211020231910.GA1313548@embeddedor> References: <20210925114308.11455-1-len.baker@gmx.com> <20211020144044.GB16460@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211020144044.GB16460@quack2.suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Wed, Oct 20, 2021 at 04:40:44PM +0200, Jan Kara wrote: [..] > > This code was detected with the help of Coccinelle and audited and fixed > > manually. > > > > [1] https://www.kernel.org/doc/html/latest/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments > > > > Signed-off-by: Len Baker > > Looks good. Feel free to add: > > Reviewed-by: Jan Kara > > BTW, writeback patches are usually merged by Andrew Morton so probably send > it to him. Thanks! I'm taking this in my -next tree. Thank you both, Len and Jan. -- Gustavo