From patchwork Tue Sep 19 10:37:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Trippelsdorf X-Patchwork-Id: 815415 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-ext4-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=mail.ud10.udmedia.de header.i=@mail.ud10.udmedia.de header.b="OJcf1umQ"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xxK852W6Tz9s82 for ; Tue, 19 Sep 2017 20:37:41 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751513AbdISKh0 (ORCPT ); Tue, 19 Sep 2017 06:37:26 -0400 Received: from ud10.udmedia.de ([194.117.254.50]:32848 "EHLO mail.ud10.udmedia.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751485AbdISKh0 (ORCPT ); Tue, 19 Sep 2017 06:37:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud10.udmedia.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=k1; bh=RsXfm/R+LBvHxI27tdWc0qED3n+X ityAAfUT1t9GbAg=; b=OJcf1umQ4kLFT0Ow1sWqKG0SQ1HIfDiBWH9SfUthqkYp Q6L6HxEVkNKLZTwT1eKpf6AeJfoPOSeUsQ27YbWdwEjmuGO/eIaqNxjQp44jy4KE xFl9lFD4ezeODV/yEJROuVIwBONf0oFaIyxMxG8/jwIcX7je1TLciXR7Fp8ezuY= Received: (qmail 17239 invoked from network); 19 Sep 2017 12:37:24 +0200 Received: from ip5b405f48.dynamic.kabel-deutschland.de (HELO x4) (ud10?360p3@91.64.95.72) by mail.ud10.udmedia.de with ESMTPSA (ECDHE-RSA-AES256-SHA encrypted, authenticated); 19 Sep 2017 12:37:24 +0200 Date: Tue, 19 Sep 2017 12:37:24 +0200 From: Markus Trippelsdorf To: Theodore Ts'o Cc: Andreas Dilger , linux-ext4@vger.kernel.org, Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells Subject: [PATCH v2] VFS: Handle lazytime in do_mount() Message-ID: <20170919103724.GA239@x4> References: <20170918192644.GA232@x4> <20170919083506.GA233@x4> <20170919101819.GA233@x4> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170919101819.GA233@x4> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Since commit e462ec50cb5fa ("VFS: Differentiate mount flags (MS_*) from internal superblock flags") the lazytime mount option didn't get passed on anymore. Fix the issue by handling the option in do_mount(). Signed-off-by: Markus Trippelsdorf Reviewed-by: Lukas Czerner --- fs/namespace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/namespace.c b/fs/namespace.c index 54059b142d6b..b633838b8f02 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -2823,7 +2823,8 @@ long do_mount(const char *dev_name, const char __user *dir_name, SB_MANDLOCK | SB_DIRSYNC | SB_SILENT | - SB_POSIXACL); + SB_POSIXACL | + SB_LAZYTIME); if (flags & MS_REMOUNT) retval = do_remount(&path, flags, sb_flags, mnt_flags,