Received: by 10.192.165.156 with SMTP id m28csp873542imm; Fri, 13 Apr 2018 09:15:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+17c8VQQsEnfXTgLlJrlG9x6IwGpMhuhIz0zJl90UzLSJ5uxkRxOEp39Hm5XmlFAUmY/8u X-Received: by 2002:a17:902:9a9:: with SMTP id 38-v6mr5837005pln.40.1523636127678; Fri, 13 Apr 2018 09:15:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523636127; cv=none; d=google.com; s=arc-20160816; b=Aigt6Y303gmeVfKtan6kVySL0E+pGUpNeoA4YuTBSu81gXqPEO07Z/ZR3JFKUwRVR3 YAGw2/QvaFJiYog6bBJp3CmMWZtduW0lrxBayhl2sxRPsdueGgQY3ZctUtE00bVb8J69 otWeRcpxOtZmvg71nFdD+6L839eEcA8mT9S43vofFzbUSb6XqFb/iNR7WEoxGxQL+f1E whWx34Uk3T2fo5VPP18dm1gkkIcHU+FVK3Kspz6BJhl9A0KeB3IouitxtlRcAlh/6N4e BBxL1XziUkPXIhZ6t3LLof/lwTxdtY1yui+Z5EdK+gz4xuoea0buTxKmMyWmlB756Q2n qYfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=PPPDt86F5yUuXmHDv6AGlyjxtJfn1rWBCcfwatk8iN0=; b=xXpW+m6pWh+Os+B9WQAzLaz9DKelYuyTtQ2vPZ55ljGUEoT3OUQrmCyOnPEwbTfR0/ wBiov0NbEIIY+iU652lNa4jFGTGFLdNcLUQvuRi5HtIU5JxmuM/UR2trFzw6tTDsvsly Z8KBAquJxNdSHs8s+Sez/deNsAdNyWvWIoSnIsmR3drK/iPRq8dzXe2JOp0UAh9+rIAH x5iQ3Jb9CUHv6rmEuHlNDUP7mRCe6eH8ds60UXURQcduq5MOJsl3k/b/GB6oavR/zy+h qhlxdGNXpAd5nYYLHarO06pAOyfTCmoGZ5uAAKL0RVXpYsMJHT8tRl0QaCU6y9chQBqQ p3TA== ARC-Authentication-Results: i=1; mx.google.com; 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 f3si4309890pgn.376.2018.04.13.09.15.13; Fri, 13 Apr 2018 09:15:27 -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; 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 S1753013AbeDMQNM (ORCPT + 99 others); Fri, 13 Apr 2018 12:13:12 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:35990 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752262AbeDMQLs (ORCPT ); Fri, 13 Apr 2018 12:11:48 -0400 Received: by mail-wr0-f195.google.com with SMTP id q13so6055617wre.3; Fri, 13 Apr 2018 09:11:47 -0700 (PDT) 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; bh=PPPDt86F5yUuXmHDv6AGlyjxtJfn1rWBCcfwatk8iN0=; b=RMImysIByBwVONWcOVz8DUJAd2LrqlTrFlKTXidF6SwRl3yF2reKSm4wkTKeWfJqSA tt+NN77x9+hxC7vnGOXoOIJbQ0yXQzZ3CpoM2yy88F3wTVKYMN2GRT3/K/EdDpBcPta0 RQuiPwm7txxbDJqsdavzvAs/ZvODDjIXbYtuq8e4MKpEZawxjw8JCeDrwe0HuKjr2fGF aFo956yOY5WubVLwTY78ZSjQj0wPfoLoF4o75iZVFWhWCsL5MRnYocHOvtxU3YzTO0MD kkWpLJfm+DrZWGSZY0YYOw061LJ5VDi3SXYR1hRJrPtkO+FxLPjecaYn7R5GnUSR0f5p Au6w== X-Gm-Message-State: ALQs6tAGXw08qjKAo3rz2hqRAax4PfoMOEUQU3P8NoIEU4XfOFXCn/nI bimj1F68zCsOyAXFIoom3f8= X-Received: by 10.28.111.194 with SMTP id c63mr3840610wmi.25.1523635906807; Fri, 13 Apr 2018 09:11:46 -0700 (PDT) Received: from localhost.localdomain (u-086-c117.eap.uni-tuebingen.de. [134.2.86.117]) by smtp.gmail.com with ESMTPSA id k35sm5371772wre.55.2018.04.13.09.11.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Apr 2018 09:11:46 -0700 (PDT) From: Christian Brauner To: viro@zeniv.linux.org.uk, tglx@linutronix.de, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, pombredanne@nexb.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, serge@hallyn.com Cc: Christian Brauner Subject: [PATCH 1/6] fs: use << for MS_* flags Date: Fri, 13 Apr 2018 18:11:21 +0200 Message-Id: <20180413161126.31313-2-christian.brauner@ubuntu.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180413161126.31313-1-christian.brauner@ubuntu.com> References: <20180413161126.31313-1-christian.brauner@ubuntu.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Consistenly use << to define MS_* constants. Signed-off-by: Christian Brauner --- include/uapi/linux/fs.h | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/include/uapi/linux/fs.h b/include/uapi/linux/fs.h index d2a8313fabd7..9662790a657c 100644 --- a/include/uapi/linux/fs.h +++ b/include/uapi/linux/fs.h @@ -105,22 +105,23 @@ struct inodes_stat_t { /* * These are the fs-independent mount-flags: up to 32 flags are supported */ -#define MS_RDONLY 1 /* Mount read-only */ -#define MS_NOSUID 2 /* Ignore suid and sgid bits */ -#define MS_NODEV 4 /* Disallow access to device special files */ -#define MS_NOEXEC 8 /* Disallow program execution */ -#define MS_SYNCHRONOUS 16 /* Writes are synced at once */ -#define MS_REMOUNT 32 /* Alter flags of a mounted FS */ -#define MS_MANDLOCK 64 /* Allow mandatory locks on an FS */ -#define MS_DIRSYNC 128 /* Directory modifications are synchronous */ -#define MS_NOATIME 1024 /* Do not update access times. */ -#define MS_NODIRATIME 2048 /* Do not update directory access times */ -#define MS_BIND 4096 -#define MS_MOVE 8192 -#define MS_REC 16384 -#define MS_VERBOSE 32768 /* War is peace. Verbosity is silence. - MS_VERBOSE is deprecated. */ -#define MS_SILENT 32768 +#define MS_RDONLY (1<<0) /* Mount read-only */ +#define MS_NOSUID (1<<1) /* Ignore suid and sgid bits */ +#define MS_NODEV (1<<2) /* Disallow access to device special files */ +#define MS_NOEXEC (1<<3) /* Disallow program execution */ +#define MS_SYNCHRONOUS (1<<4) /* Writes are synced at once */ +#define MS_REMOUNT (1<<5) /* Alter flags of a mounted FS */ +#define MS_MANDLOCK (1<<6) /* Allow mandatory locks on an FS */ +#define MS_DIRSYNC (1<<7) /* Directory modifications are synchronous */ +#define MS_NOATIME (1<<10) /* Do not update access times. */ +#define MS_NODIRATIME (1<<11) /* Do not update directory access times */ +#define MS_BIND (1<<12) +#define MS_MOVE (1<<13) +#define MS_REC (1<<14) +#define MS_VERBOSE (1<<15) /* War is peace. Verbosity is silence. + * MS_VERBOSE is deprecated. + */ +#define MS_SILENT (1<<15) #define MS_POSIXACL (1<<16) /* VFS does not apply the umask */ #define MS_UNBINDABLE (1<<17) /* change to unbindable */ #define MS_PRIVATE (1<<18) /* change to private */ -- 2.17.0