From patchwork Wed Oct 11 05:01:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Trippelsdorf X-Patchwork-Id: 9998665 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1B399602BF for ; Wed, 11 Oct 2017 05:01:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0152228892 for ; Wed, 11 Oct 2017 05:01:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9093288B8; Wed, 11 Oct 2017 05:01:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BA7D28892 for ; Wed, 11 Oct 2017 05:01:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755039AbdJKFBe (ORCPT ); Wed, 11 Oct 2017 01:01:34 -0400 Received: from ud10.udmedia.de ([194.117.254.50]:59294 "EHLO mail.ud10.udmedia.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbdJKFBd (ORCPT ); Wed, 11 Oct 2017 01:01:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=trippelsdorf.de; h=date :from:to:cc:subject:message-id:mime-version:content-type; s=k1; bh=gODI59QvLBxDWZWrQthWcE1qB1wLZ/sRPLtaOTQ2bZ8=; b=eFQRcMO7XmcD 1t/hdyEIQtxFQb8fvmdyfvQBWLb3HucjIHmYMcG//d6/kM0hmRqERzKV9DRHQ7Ck +fbEgZUBkDtw87cAWzzfcAFRoLG9MmZzWyS/fKtrM4wWhvJRSsjgsIqJvlyPHd6z N+8YlHWmLpopBs5ePYSSpn6KnVkip5A= Received: (qmail 29860 invoked from network); 11 Oct 2017 07:01:31 +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); 11 Oct 2017 07:01:31 +0200 Date: Wed, 11 Oct 2017 07:01:31 +0200 From: Markus Trippelsdorf To: Alexander Viro Cc: Andreas Dilger , linux-ext4@vger.kernel.org, Theodore Ts'o , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells , Lukas Czerner Subject: [PATCH] VFS: Handle lazytime in do_mount() Message-ID: <20171011050131.GB13028@x4> MIME-Version: 1.0 Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since commit e462ec50cb5fa ("VFS: Differentiate mount flags (MS_*) from internal superblock flags") the lazytime mount option doesn't get passed on anymore. Fix the issue by handling the option in do_mount(). Reviewed-by: Lukas Czerner Signed-off-by: Markus Trippelsdorf Reviewed-by: Goldwyn Rodrigues --- 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,