Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2765446pxb; Sun, 29 Aug 2021 02:58:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOCup2nPtiY9arlAhIMpQWVNZh4NSCtbGiUXJKt+dF51GtQCLXdO8+L/nJD5L9pbUp9ZzL X-Received: by 2002:a17:906:417:: with SMTP id d23mr18694525eja.383.1630231114365; Sun, 29 Aug 2021 02:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630231114; cv=none; d=google.com; s=arc-20160816; b=NTeu75503ZhGkMWlLb4VGXx1XbKWm4YGb2DPUa/SkK5/75ix3ShNQXrbjJBvpU65iA zjDjIPlwAbswdP+y1ugBhJfHsiGfjTFGCdVtzVmSk0JRSKE249hkCNrvW2Yner3uNxwP TIoPEwJVT5aMxzN8om4RhkxIrdN37QBRZNKYJjchxLWZNT7VHvFrhW9G2TYv3+msl5kJ tovLK9dXxABoAeorJ+COQlDfqbF+o9584oLJZa2Bga6JhMI4JiOZt4KQFQq1ZFXYeNMh gBqDhMWXmv7LVv+LySf/EFEIdIlDRW+joHqMZtHR1WHKex3dDXSngAx8e2C7+jb3MgZp DcVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=w5JhVyRqtdJpuGBlvHxS0x0qfaPttBBsFZAiPeZDkRE=; b=CJkARXtg7E+PHdebqqxYqdq8mIk9CH4lp+BUGKmXgxE3zdiwAqyB28OwnVDDE90mnf 8xkG3pq2/qVqsHhzjp7k/az5vGqQySWlZ/RM2ifkRsRhRJMazdIlfuesmS1RIgFi9QpT pyFDojSTEx4MFqt3o1mAFEoGYah0E3gCKB3OClQwGLS1z3YugqYRo8Iquc7vGt05/naB vHoV928nE2pmUI9LRouCONae6uh+SIJ2gbSEMu9IB2vd47P0H7nwnxHNTqHjuvG7ODwD iR6bTehyUBh9B6HI7M7VsEBQnQ8ZdKkNOC5eT3T6rAwHu/PTYzYklQoVEWvkMrgWVetC 8R0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qzYp3rH7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si1779778edd.566.2021.08.29.02.58.06; Sun, 29 Aug 2021 02:58:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qzYp3rH7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235113AbhH2J5f (ORCPT + 99 others); Sun, 29 Aug 2021 05:57:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235082AbhH2J5b (ORCPT ); Sun, 29 Aug 2021 05:57:31 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 987F6C061575; Sun, 29 Aug 2021 02:56:39 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id m4so20067526ljq.8; Sun, 29 Aug 2021 02:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=w5JhVyRqtdJpuGBlvHxS0x0qfaPttBBsFZAiPeZDkRE=; b=qzYp3rH7/Jm8TDxr6yuA+GxjZA0ElQbz+XiSyKTodB3ODMiqYP6Z1EQ5n9KB2NIwTw 2SvuQ+RKW2jsUtPbsUtkyHU0F9IavDD2WE6BKHNy41tM6LxZcN5Ff6VVaM6EdfKdUEqQ SPE2ql5GgbpuGftmpq2DpuZWToI8bxY65K0LDETKTkgbRgOl9agQJpyH6Dvkj5rhIXQu yDP7ycj8oV9G65tXPhwIzU5P8AqWGWhhWzYM/rVW8ECRD9PNt7XAF+cFYS5nX+W9hDFR 9Q3OkArdxcj55YnD5JiYMD23jkuVL66GW1qazxsMyWMmOLig/yu52046SJZ1r2xyHdRW aWAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=w5JhVyRqtdJpuGBlvHxS0x0qfaPttBBsFZAiPeZDkRE=; b=hPtzx0/uHJYCd2T36mkHqjqCdBltYh+Y6pdYRl2zx8j3i2h7bsjo2Y2yB4BZaRZJ/H 8DqxIGNdPSwpJgXwBPZVtkre46w4VZxU9xd14zsbRKF83c12PM3rBjYmy8w2lUlDoLoF CMTusGbu73yDhlE7zwT/ZMgGraYTpT1uevxZWFw6ON69yteI/QcC8Xb5/nLothU0PLCx 5fT9jRIQdm3lk7YdFbcjE9t09Y08q1RE7p47XdK+Ifs4AaZ9N8iVi6r5kLb+vJwyH0Ea 1k3jY9/uNw0t/LZKuJUaVicR12yG4o/l/++LJ5xTk0sTs5BVDpY4fpIeusQ0694u3oeZ BgyQ== X-Gm-Message-State: AOAM531oT72dY0UWdeDa/XfdBGfOGiFPnVifsTsBsF+gCVEKxhuPZXcD 8L0GaCit4ObErQJFpnbHmIc= X-Received: by 2002:a2e:1514:: with SMTP id s20mr16140249ljd.34.1630230998034; Sun, 29 Aug 2021 02:56:38 -0700 (PDT) Received: from localhost.localdomain (37-33-245-172.bb.dnainternet.fi. [37.33.245.172]) by smtp.gmail.com with ESMTPSA id d6sm1090521lfi.57.2021.08.29.02.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Aug 2021 02:56:37 -0700 (PDT) From: Kari Argillander To: Konstantin Komarov , ntfs3@lists.linux.dev Cc: Kari Argillander , Christoph Hellwig , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= , Matthew Wilcox , Christian Brauner Subject: [PATCH v3 2/9] fs/ntfs3: Remove unnecesarry remount flag handling Date: Sun, 29 Aug 2021 12:56:07 +0300 Message-Id: <20210829095614.50021-3-kari.argillander@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210829095614.50021-1-kari.argillander@gmail.com> References: <20210829095614.50021-1-kari.argillander@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unnecesarry remount flag handling. This does not do anything for this driver. We have already set SB_NODIRATIME when we fill super. Also noatime should be set from mount option. Now for some reson we try to set it when remounting. Lazytime part looks like it is copied from f2fs and there is own mount parameter for it. That is why they use it. We do not set lazytime anywhere in our code. So basically this just blocks lazytime when remounting. Acked-by: Christian Brauner Reviewed-by: Christoph Hellwig Signed-off-by: Kari Argillander --- fs/ntfs3/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index 267f123b0109..c590872070e1 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -407,8 +407,6 @@ static int ntfs_remount(struct super_block *sb, int *flags, char *data) clear_mount_options(&old_opts); - *flags = (*flags & ~SB_LAZYTIME) | (sb->s_flags & SB_LAZYTIME) | - SB_NODIRATIME | SB_NOATIME; ntfs_info(sb, "re-mounted. Opts: %s", orig_data); err = 0; goto out; -- 2.25.1