Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp317207imn; Thu, 4 Aug 2022 07:08:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR6sONp25re9WPF0Kns0Aw/j5/s1Trh+SHIjTqvwSDJkYgbWYLcT1SNTsiQdEtHl0iczX2Kd X-Received: by 2002:a17:907:7b8e:b0:730:7295:fdfd with SMTP id ne14-20020a1709077b8e00b007307295fdfdmr1596179ejc.152.1659622116578; Thu, 04 Aug 2022 07:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659622116; cv=none; d=google.com; s=arc-20160816; b=PNxBIyPwdwS5heipi92SadaPRuMYEtSMSRiAbsW1zOakODCxZuueoHIRBpA2voRSFY L90oe2cjrdtVo3M32gKSlc443ayeai4u1aJZ+9YuvDvlPMJfrSHYkR5iup79pox9GpVX aDcQrV5JqBU1+/9F/hOTn+wT2Y6V4utvBYjOLciPaPd+TmY6j5weH9FEbyzg0tibdww7 wf4CgVCFI0TMLVC30IV1GQ2jCjK8XmkDNLyjzw1K0reFhOgmU53QG3IoDQ11PR72DO5g sFYsKFeRdObkShai1vGr8HdOpTc70zZLGnNovThpH5Y2uSg+8JCLKR1axzU7EORrzXEm isHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=t0YLRDoXjXkZ0uLk57gPeqK/NVxB+ds8DGraJuJzNms=; b=sqFlasfucqoFzjfBmKfgrRtYDrvd2MDqEk5d3EW2joGK1OpgdmZ4Vesd9UXqHhJEMH kZpGBvtRaxTayCJ+XG5veWIwAfLAPU6jGehPS04Fx3Q7qU5r58bzRIxmc0HzwaaNWhWZ T+7OQVmRvpxtlr6VLmQs3x3GaJszxygYn5Q8Iddhqo84alk16ndXTJGYW6EehyTe7+rU n3xf31Obs31w+FRxsu7ToCbY65lkJXD6QGVNmXnDhpNsHiiUI4Bu0hROrt0ida5EaUUN dKPMrwH/7BYaqomGAnd9mGgg/ufN4zFN3/WAENRr96Q+PxLlL58Gb5c7mmowFUaPuFRM 0K0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WRakjXtJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v25-20020a17090690d900b00730aa17d032si963529ejw.337.2022.08.04.07.08.11; Thu, 04 Aug 2022 07:08:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WRakjXtJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239575AbiHDNus (ORCPT + 99 others); Thu, 4 Aug 2022 09:50:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234763AbiHDNup (ORCPT ); Thu, 4 Aug 2022 09:50:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E8EC641E for ; Thu, 4 Aug 2022 06:50:44 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 08EAC61856 for ; Thu, 4 Aug 2022 13:50:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB939C433D6; Thu, 4 Aug 2022 13:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659621043; bh=ypCEvGSbXL+VemXY0bh4lxvSFLUZsXpyG4Kso6XHBJc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=WRakjXtJ5ZXQJIkhgx2mOUgfrRZBCkvoIq3nQUz3a9f1Q6oJoSwZ0AbkpARn71wK4 emOWCy5YOP5Kx0LpQ85HCccSBmYzNRnGZMGKEOC3oOqNHfVjDXw5bd0RWRz5qLIV+x jU8P0fMHEsIm3hvmRQp7QKx0YNf2ednnLW4IJZw2FqdrG2e1Bqa/v8irCb53Hui29X atdRrol9TxRUTO6+B3sb8czwx6k6gOv2QHs3Gz9t71UHyXSEvhnfKL0c7Wv23hnI0l KK1JsEusNxXUar+oejPLpdvHnoX56iaAswopaDGAr0ja10Ob3jp0+rz7aBahsyImDB x3zPqr3VNqZNw== Message-ID: Date: Thu, 4 Aug 2022 21:50:39 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH -next] f2fs: Replace kmalloc() with f2fs_kmalloc Content-Language: en-US To: Jaegeuk Kim , Joe Perches Cc: Christoph Hellwig , studentxswpy@163.com, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Hacash Robot References: <20220801092202.3134668-1-studentxswpy@163.com> From: Chao Yu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/8/4 11:54, Jaegeuk Kim wrote: > On 08/01, Joe Perches wrote: >> On Mon, 2022-08-01 at 11:23 -0700, Christoph Hellwig wrote: >>> On Mon, Aug 01, 2022 at 05:22:02PM +0800, studentxswpy@163.com wrote: >>>> From: Xie Shaowen >>>> >>>> replace kmalloc with f2fs_kmalloc to keep f2fs code consistency. >>> >>> For that removing f2fs_kmalloc entirely would be way better. >> >> Dunno, maybe doubtful as there's a specific "fault injector" test >> built around f2fs_alloc. (CONFIG_F2FS_FAULT_INJECTION) > > Yes, it's very useful to run the test checking the ENOMEM case. It's useful to cover more error paths for xxx_alloc functions in f2fs with common testcases. > >> >> For a student lesson, it would significantly better to compile any >> patch, especially to avoid broken patches, before submitting them. >>