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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BFDEC433E0 for ; Thu, 21 May 2020 16:55:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D91C8207F7 for ; Thu, 21 May 2020 16:55:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728593AbgEUQzy (ORCPT ); Thu, 21 May 2020 12:55:54 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:59063 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728546AbgEUQzy (ORCPT ); Thu, 21 May 2020 12:55:54 -0400 Received: from callcc.thunk.org (pool-100-0-195-244.bstnma.fios.verizon.net [100.0.195.244]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 04LGtmjc007703 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 May 2020 12:55:49 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 2F56A420304; Thu, 21 May 2020 12:55:48 -0400 (EDT) Date: Thu, 21 May 2020 12:55:48 -0400 From: "Theodore Y. Ts'o" To: Anna Pendleton Cc: Andreas Dilger , linux-ext4@vger.kernel.org, Harshad Shirwadkar Subject: Re: [PATCH] ext4: avoid ext4_error()'s caused by ENOMEM in the truncate path Message-ID: <20200521165548.GA2946569@mit.edu> References: <20200507175028.15061-1-pendleton@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507175028.15061-1-pendleton@google.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, May 07, 2020 at 10:50:28AM -0700, Anna Pendleton wrote: > From: Theodore Ts'o > > We can't fail in the truncate path without requiring an fsck. > Add work around for this by using a combination of retry loops > and the __GFP_NOFAIL flag. > > From: Theodore Ts'o > Signed-off-by: Theodore Ts'o > Signed-off-by: Anna Pendleton > Reviewed-by: Harshad Shirwadkar Thanks, applied. Per the feedback from the kbuild test robot, I changed "int gfp_flags =..." to "gfp_t gfp_flags=..." in three places in the patches. Cheers, - Ted