From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by kanga.kvack.org (Postfix) with ESMTP id 3319B6B0036 for ; Mon, 2 Jun 2014 01:25:50 -0400 (EDT) Received: by mail-we0-f172.google.com with SMTP id k48so4616640wev.17 for ; Sun, 01 Jun 2014 22:25:49 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTP id m2si19576399wiz.34.2014.06.01.22.25.47 for ; Sun, 01 Jun 2014 22:25:48 -0700 (PDT) From: Naoya Horiguchi Subject: [PATCH 1/3] replace PAGECACHE_TAG_* definition with enumeration Date: Mon, 2 Jun 2014 01:24:57 -0400 Message-Id: <1401686699-9723-2-git-send-email-n-horiguchi@ah.jp.nec.com> In-Reply-To: <1401686699-9723-1-git-send-email-n-horiguchi@ah.jp.nec.com> References: <20140521193336.5df90456.akpm@linux-foundation.org> <1401686699-9723-1-git-send-email-n-horiguchi@ah.jp.nec.com> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Konstantin Khlebnikov , Wu Fengguang , Arnaldo Carvalho de Melo , Borislav Petkov , "Kirill A. Shutemov" , Johannes Weiner , Rusty Russell , David Miller , Andres Freund , linux-kernel@vger.kernel.org, linux-mm@kvack.org We need number of pagecache tags in later patches, this patch prepares it. Signed-off-by: Naoya Horiguchi --- include/linux/fs.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git v3.15-rc7.orig/include/linux/fs.h v3.15-rc7/include/linux/fs.h index 878031227c57..5b489df9d964 100644 --- v3.15-rc7.orig/include/linux/fs.h +++ v3.15-rc7/include/linux/fs.h @@ -447,9 +447,12 @@ struct block_device { * Radix-tree tags, for tagging dirty and writeback pages within the pagecache * radix trees */ -#define PAGECACHE_TAG_DIRTY 0 -#define PAGECACHE_TAG_WRITEBACK 1 -#define PAGECACHE_TAG_TOWRITE 2 +enum { + PAGECACHE_TAG_DIRTY, + PAGECACHE_TAG_WRITEBACK, + PAGECACHE_TAG_TOWRITE, + __NR_PAGECACHE_TAGS, +}; int mapping_tagged(struct address_space *mapping, int tag); -- 1.9.3 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org