Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1364862ybg; Thu, 11 Jun 2020 08:02:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVMWNt5FGXTc9KH9W3ZireVt2FxsT2mCKHZvtvN6FI/D9k3IC9pJAvfAuFwRZtFAnjoY2e X-Received: by 2002:a05:6402:1512:: with SMTP id f18mr7538467edw.101.1591887728473; Thu, 11 Jun 2020 08:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591887728; cv=none; d=google.com; s=arc-20160816; b=RIhsYJk9Xjr4HjkDLC59D3yMnUlHHcDDrqFITOO1RtHgClFd/U4qA0QqsmvOZZuOQk rVVaIHLsN+fr4hAyvFc7o+1pgPUjxQKWDZo/WTaleBCU8ZsXRv321hJ8WHk1ro5ABz// UOF84UwTd0JBHfZmWkBF6oU/1T1vZH+TSqs3tnTco0GwEY4VWaHkBXRW5m4StjlFLfwe KjfUuVLCxKDfSC+72wrMJvwIFgR9SwjpuB5HPbUDZ1Egh77v/kOVGy40h5HYf2gTuE2I sBk0jQ7xU3o++CFZKf1NS3oNd826uD+VLObWb7/XTwwA6znfgloGG3SFguNOh7kFI+Ay FsLw== 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=xXbElkPFECT5jRH63cBlwgG8bPkpB5NjMfePfWm5YnE=; b=AQtN0m6OPRj8NtE4/80nO1BoLRHhKKveNlL4ffiNnBMsI6PZfIo4W4m6jC1eLfBHRI kqWsrP3VwtB33jgIK3i7gfvxKrgJuxBjHE9CYbir5NkC1uJxZmEWh/kKhu+Ss9dWLMcB i2nBudpIAMWdbn+sdLjx95khqV4eeuXeepru0gOXzcngBe4efIRCBhvuqEX2bt4Yw2GH 5r9a0EafwrlJNsSVksOVHW+boSpeLLrc4LLn8XRvBjMx69psbuGtV7NUSX+SchngsmxU GEjYc1DV5yz9E5M1Qpk36JzwFVraDyEFw9jMckNF7DqwEt/x/U7msGafpRX3Tw7waqJ3 1SXA== 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 y1si2002164ejq.726.2020.06.11.08.01.28; Thu, 11 Jun 2020 08:02:08 -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 S1728327AbgFKPA4 (ORCPT + 99 others); Thu, 11 Jun 2020 11:00:56 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:47353 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728059AbgFKPA4 (ORCPT ); Thu, 11 Jun 2020 11:00:56 -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 05BExr8q024568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jun 2020 10:59:53 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 112B14200DD; Thu, 11 Jun 2020 10:59:53 -0400 (EDT) Date: Thu, 11 Jun 2020 10:59:53 -0400 From: "Theodore Y. Ts'o" To: Jan Kara Cc: yangerkun , jaegeuk@kernel.org, linux-ext4@vger.kernel.org, yi.zhang@huawei.com Subject: Re: [PATCH] ext4: stop overwrite the errcode in ext4_setup_super Message-ID: <20200611145953.GN1347934@mit.edu> References: <20200601073404.3712492-1-yangerkun@huawei.com> <20200601114708.GG3960@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200601114708.GG3960@quack2.suse.cz> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Jun 01, 2020 at 01:47:08PM +0200, Jan Kara wrote: > On Mon 01-06-20 15:34:04, yangerkun wrote: > > Now the errcode from ext4_commit_super will overwrite EROFS exists in > > ext4_setup_super. Actually, no need to call ext4_commit_super since we > > will return EROFS. Fix it by goto done directly. > > > > Fixes: c89128a00838 ("ext4: handle errors on ext4_commit_super") > > Signed-off-by: yangerkun > > Yeah, makes sense. You can add: > > Reviewed-by: Jan Kara Thanks, applied. - Ted