Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp273652yba; Mon, 20 May 2019 08:29:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDao6uqNhchGK+ue304NeVB3Z6jwgx7VWW67QX5X9bYKYFXqzLrWjDy6cJbhO0Q+kSN42D X-Received: by 2002:a17:902:e104:: with SMTP id cc4mr75747981plb.254.1558366150329; Mon, 20 May 2019 08:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558366150; cv=none; d=google.com; s=arc-20160816; b=Nz6/zU5U+q3vu8OoB42A9WxN9irxxjOsQ3Slg6JXHCP8Ef67w2Au/YWeUK0qIgc4tU h5Hfh1h/3mHFTgi20WbNeP/3TcFFsoJ09d044U4r0zEguqShUUEFTcbhAwgEp5uwRsgT Z7MBg1n5tkLM+/FS3WKgLL8iQXArQojxATVdr/LQ/Wv04yw80yn5JhJM8HKa5nFD2eUg ABkKoJDrbVO40gbkbCWkLvJg6NjGuElksSVw6zPF4XYv2amVkoVbEY380jm5VaP3pDd4 RFDzA9bjYg9gck1Sta+q2jh57Mf4MoT83LOp9BKSdjt11BkUseihrBWoG4aIoR1SX2wB kv2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WnLxoHwBQtuQbj+dXAprGDSPqsAxrzLKSLdqH3u5bCE=; b=iFcYm2MjzBAt5NL1vAJQOR9vpTBNiDBqxxSp5oEY6Rb90fz1lmzQwMW0wYZ359ClL6 hF1DzmmUUHIl4Z+/7+nSEl6+zMBAl7f0a5n5O8eMLYohZ0NjBOpq4nLSwTQOHPyNFqdM WIZaZSUUSfLnvJOiSjgOXi6ETJGGED+sbudy2GSWkH4vpWEzanqi+rlkE0gU+wiZGARR RnOnYcsJEC7XJtcCwAjLkRILU4aJYEretL6QT9NF++vnYwcPtzSOQ6woeMWAlDb3Dt4x KExrzawdKDXoCVyBK1N1c/smrjOCMKz8sMur+u2hVdPaX3SezoBT2nFg2SWwtkawWoeq 1+mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QzZMDMhw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k27si18423182pgi.124.2019.05.20.08.28.54; Mon, 20 May 2019 08:29:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QzZMDMhw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388733AbfETMX7 (ORCPT + 99 others); Mon, 20 May 2019 08:23:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:38630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388715AbfETMXz (ORCPT ); Mon, 20 May 2019 08:23:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 98E89214AE; Mon, 20 May 2019 12:23:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558355035; bh=jlAxy7qu2d/sHWB+iguW6FoOguS3pnhmvYhNhR0sF84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QzZMDMhwdbCGn6y/+P+OT5Ut5ecQoX+4inE9LTMcDb55zZlYRjWvhODY8dsdJaeoe bHetchECRq2sqjomBix9FXQ/DkOG6Zd1Kt+0oC2gPMhZ7JilA1D2w8237Up8cwTByd JrYXVuX7UZHwW1jZgN+KRgFHWbfNDmRoG9jV1IjU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Debabrata Banerjee , Theodore Tso , Jan Kara , stable@kernel.org Subject: [PATCH 4.19 072/105] ext4: fix ext4_show_options for file systems w/o journal Date: Mon, 20 May 2019 14:14:18 +0200 Message-Id: <20190520115252.164850715@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190520115247.060821231@linuxfoundation.org> References: <20190520115247.060821231@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Debabrata Banerjee commit 50b29d8f033a7c88c5bc011abc2068b1691ab755 upstream. Instead of removing EXT4_MOUNT_JOURNAL_CHECKSUM from s_def_mount_opt as I assume was intended, all other options were blown away leading to _ext4_show_options() output being incorrect. Fixes: 1e381f60dad9 ("ext4: do not allow journal_opts for fs w/o journal") Signed-off-by: Debabrata Banerjee Signed-off-by: Theodore Ts'o Reviewed-by: Jan Kara Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -4270,7 +4270,7 @@ static int ext4_fill_super(struct super_ "data=, fs mounted w/o journal"); goto failed_mount_wq; } - sbi->s_def_mount_opt &= EXT4_MOUNT_JOURNAL_CHECKSUM; + sbi->s_def_mount_opt &= ~EXT4_MOUNT_JOURNAL_CHECKSUM; clear_opt(sb, JOURNAL_CHECKSUM); clear_opt(sb, DATA_FLAGS); sbi->s_journal = NULL;