Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3770352ybk; Tue, 19 May 2020 12:32:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtBn00P3K11gjHzOJjXvDzzx5zJGRpj+kKP9HxuC4sc5d7EsH56kH5mkXxwUkVRA9aXpCZ X-Received: by 2002:a50:f09a:: with SMTP id v26mr385804edl.343.1589916750099; Tue, 19 May 2020 12:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589916750; cv=none; d=google.com; s=arc-20160816; b=inCHV/wzavRL1FRLa0XIQRIDff1sCl8PSCNAfQuWLM+O6foWGPlsS0jHwWzvmFigFw ZANHpRt/mJf57vWsL4fmiWCudWPwWJaFdnshEvg/v/PK1iWQH7jJV3gl9+p3LWM57Fjs caEFpYA+5GDaca5KVAVT0OT7x3XAmAPApiaX8+LJKuuiqx3GPgh+0tf9RbN0oeku2F8l TQ85wJpmWtlBeCNpJGwjnJjUDMDftKdu70iqAgQosriIjxp6GJOdbGqAK5vDmXOg+xVt /WkplCiIg5EFJkZrVJHXI2Dv9QU2wusXLHYkvqe8QMgWBUaskIP9P98iJSV3WTDt1Kh8 O2uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=c8KjNTcFbq7J9jFx/GKKATD2vy2hZnDbF2hFjRUFxCg=; b=e1BYveW6iLXAQpqMVJbLRnuNPtBqZ41DcAIpYxUFHT3Oy5u/bjqMsJZKRAnSGM4ifc uN1+19cQXHMLoImrGx2Z2TKd9JijBv9wry5Tof/FP6xNvzulkSaL5Ubwh9NiA1T1GLlJ qdVDKoftZfIAtai9ihfDpmHwj5x3NLEV6C/FV7V2SJeKSHw93Ke5ojDiTeNN6AyHhq5b 4QQFWecAryUKgYP0y9v8C2R4cu+bYseFUbRmwx/0LRfBqDbd7fFG9VbcUab+uAkUgCEl ucc46doxJL7BVuQEPEN8WmvQqRNnLVls952QDD7uzAqCxmuFYc8lHySC/3EsB4MGWrQs I85w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i29si211520edj.93.2020.05.19.12.31.54; Tue, 19 May 2020 12:32:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726161AbgESTbr (ORCPT + 99 others); Tue, 19 May 2020 15:31:47 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:45901 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726059AbgESTbr (ORCPT ); Tue, 19 May 2020 15:31:47 -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 04JJVfG0008218 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 May 2020 15:31:42 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id B9BA5420304; Tue, 19 May 2020 15:31:41 -0400 (EDT) Date: Tue, 19 May 2020 15:31:41 -0400 From: "Theodore Y. Ts'o" To: Harshad Shirwadkar Cc: linux-ext4@vger.kernel.org, Jan Kara Subject: Re: [PATCH v3] ext4: don't ignore return values from ext4_ext_dirty() Message-ID: <20200519193141.GG2396055@mit.edu> References: <20200427013438.219117-1-harshadshirwadkar@gmail.com> <20200427013438.219117-2-harshadshirwadkar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200427013438.219117-2-harshadshirwadkar@gmail.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sun, Apr 26, 2020 at 06:34:38PM -0700, Harshad Shirwadkar wrote: > Don't ignore return values from ext4_ext_dirty, since the errors > indicate valid failures below Ext4. In all of the other instances of > ext4_ext_dirty calls, the error return value is handled in some > way. This patch makes those remaining couple of places to handle > ext4_ext_dirty errors as well. In case of ext4_split_extent_at(), the > ignorance of return value is intentional. The reason is that we are > already in error path and there isn't much we can do if ext4_ext_dirty > returns error. This patch adds a comment for that case explaining why > we ignore the return value. > > In the longer run, we probably should > make sure that errors from other mark_dirty routines are handled as > well. > > Ran gce-xfstests smoke tests and verified that there were no > regressions. > > Signed-off-by: Harshad Shirwadkar > Reviewed-by: Jan Kara Thanks, applied. - Ted