Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751856AbdISPZG (ORCPT ); Tue, 19 Sep 2017 11:25:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42734 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751425AbdISPZE (ORCPT ); Tue, 19 Sep 2017 11:25:04 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9E030C00DB97 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=lczerner@redhat.com Date: Tue, 19 Sep 2017 17:25:00 +0200 From: Lukas Czerner To: Markus Trippelsdorf Cc: "Theodore Ts'o" , Andreas Dilger , linux-ext4@vger.kernel.org, Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells Subject: Re: [PATCH v2] VFS: Handle lazytime in do_mount() Message-ID: <20170919152500.ce62nirm7gu3lqvq@rh_laptop> References: <20170918192644.GA232@x4> <20170919083506.GA233@x4> <20170919101819.GA233@x4> <20170919103724.GA239@x4> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170919103724.GA239@x4> User-Agent: NeoMutt/20170714 (1.8.3) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 19 Sep 2017 15:25:04 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1070 Lines: 34 On Tue, Sep 19, 2017 at 12:37:24PM +0200, Markus Trippelsdorf wrote: > 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 > --- > 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); Looks good. Although I still think that this can be per mountpoint options. Regardless of that, you can add Reviewed-by: Lukas Czerner > > if (flags & MS_REMOUNT) > retval = do_remount(&path, flags, sb_flags, mnt_flags, > -- > Markus