From patchwork Wed Apr 18 09:27:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Brauner X-Patchwork-Id: 10347675 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 407186053F for ; Wed, 18 Apr 2018 09:29:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D17428434 for ; Wed, 18 Apr 2018 09:29:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 317B128590; Wed, 18 Apr 2018 09:29:19 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 A541728434 for ; Wed, 18 Apr 2018 09:29:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753693AbeDRJ2h (ORCPT ); Wed, 18 Apr 2018 05:28:37 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:34905 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753164AbeDRJ1d (ORCPT ); Wed, 18 Apr 2018 05:27:33 -0400 Received: by mail-wr0-f196.google.com with SMTP id w3-v6so2868125wrg.2; Wed, 18 Apr 2018 02:27:32 -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=B3GoGn87dc0IcAvXmnmtQNYTZyenaafcf7e2xF5ClAw=; b=UFSs2RBcAkwPpeHSru1K7au0MmwHX8cF8sc12HLg78mdh9AJWlcHsLebwGGGg/+YK6 gBjBhHDv245MUGVcf76GnOZXNKMhaBoHy16q+IdGFk4pJCW32Da9CuRURB8K2pYwphPB 3jO6i7QXPjOPfk71ezjxV+uHOdkjAN6/gjcWAmoeSUD4nYALwq3QVsV4zgMzQk0l56xW bmaFnRrcUAal+gswZOU2E79Uw3GFMyjtffJDBQelz8LiZwjlLQCacZv0HEt87ahbo0We OlTyaGOwFksuihGn2IwkAXC4TQ6IEFVXWUi26TLrksnj1x+400sm9E3MUBjFcdR+wlle Sg4g== X-Gm-Message-State: ALQs6tCkfmzeXT5BqXaMWZTS7Y/Sas11rmzEvkolm6Cx4kBMJ5+v1s6B M+DJkO7v7fbJMe3+zm64beYYbsPx7T4= X-Google-Smtp-Source: AIpwx4/n5fHa7pPl5pxV7xJMYhrIIELK7RLrR/u7cNU3GH1lVKYrwZ57RnreLxNChS7rrhIIaPz+gg== X-Received: by 10.28.36.3 with SMTP id k3mr1267073wmk.51.1524043651709; Wed, 18 Apr 2018 02:27:31 -0700 (PDT) Received: from localhost.localdomain (u-084-c204.eap.uni-tuebingen.de. [134.2.84.204]) by smtp.gmail.com with ESMTPSA id n21sm1355327wmi.37.2018.04.18.02.27.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Apr 2018 02:27:31 -0700 (PDT) From: Christian Brauner To: viro@zeniv.linux.org.uk, kstewart@linuxfoundation.org, tglx@linutronix.de, pombredanne@nexb.com, gregkh@linuxfoundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org Cc: Christian Brauner Subject: [PATCH 2/6 RESEND] statfs: use << to align with fs header Date: Wed, 18 Apr 2018 11:27:18 +0200 Message-Id: <20180418092722.20136-3-christian.brauner@ubuntu.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180418092722.20136-1-christian.brauner@ubuntu.com> References: <20180418092722.20136-1-christian.brauner@ubuntu.com> 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 Consistenly use << to define ST_* constants. This also aligns them with their MS_* counterparts in fs.h Signed-off-by: Christian Brauner Cc: Alexander Viro --- include/linux/statfs.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/linux/statfs.h b/include/linux/statfs.h index 3142e98546ac..b336c04e793c 100644 --- a/include/linux/statfs.h +++ b/include/linux/statfs.h @@ -27,18 +27,18 @@ struct kstatfs { * ABI. The exception is ST_VALID which has the same value as MS_REMOUNT * which doesn't make any sense for statfs. */ -#define ST_RDONLY 0x0001 /* mount read-only */ -#define ST_NOSUID 0x0002 /* ignore suid and sgid bits */ -#define ST_NODEV 0x0004 /* disallow access to device special files */ -#define ST_NOEXEC 0x0008 /* disallow program execution */ -#define ST_SYNCHRONOUS 0x0010 /* writes are synced at once */ -#define ST_VALID 0x0020 /* f_flags support is implemented */ -#define ST_MANDLOCK 0x0040 /* allow mandatory locks on an FS */ -/* 0x0080 used for ST_WRITE in glibc */ -/* 0x0100 used for ST_APPEND in glibc */ -/* 0x0200 used for ST_IMMUTABLE in glibc */ -#define ST_NOATIME 0x0400 /* do not update access times */ -#define ST_NODIRATIME 0x0800 /* do not update directory access times */ -#define ST_RELATIME 0x1000 /* update atime relative to mtime/ctime */ +#define ST_RDONLY (1<<0) /* mount read-only */ +#define ST_NOSUID (1<<1) /* ignore suid and sgid bits */ +#define ST_NODEV (1<<2) /* disallow access to device special files */ +#define ST_NOEXEC (1<<3) /* disallow program execution */ +#define ST_SYNCHRONOUS (1<<4) /* writes are synced at once */ +#define ST_VALID (1<<5) /* f_flags support is implemented */ +#define ST_MANDLOCK (1<<6) /* allow mandatory locks on an FS */ +/* (1<<7) used for ST_WRITE in glibc */ +/* (1<<8) used for ST_APPEND in glibc */ +/* (1<<9) used for ST_IMMUTABLE in glibc */ +#define ST_NOATIME (1<<10) /* do not update access times */ +#define ST_NODIRATIME (1<<11) /* do not update directory access times */ +#define ST_RELATIME (1<<12) /* update atime relative to mtime/ctime */ #endif