From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757208Ab2CaJ36 (ORCPT ); Sat, 31 Mar 2012 05:29:58 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:61245 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755046Ab2CaJ3i (ORCPT ); Sat, 31 Mar 2012 05:29:38 -0400 Subject: [PATCH 7/7] mm: move madvise vma flags to the end To: linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org From: Konstantin Khlebnikov Cc: Linus Torvalds Date: Sat, 31 Mar 2012 13:29:33 +0400 Message-ID: <20120331092933.19920.29313.stgit@zurg> In-Reply-To: <20120331091049.19373.28994.stgit@zurg> References: <20120331091049.19373.28994.stgit@zurg> User-Agent: StGit/0.15 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let's collect them together. Signed-off-by: Konstantin Khlebnikov --- include/linux/mm.h | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 3a4d721..5e89a4f 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -91,10 +91,6 @@ extern unsigned int kobjsize(const void *objp); #define VM_LOCKED 0x00002000 #define VM_IO 0x00004000 /* Memory mapped I/O or similar */ - /* Used by sys_madvise() */ -#define VM_SEQ_READ 0x00008000 /* App will access data sequentially */ -#define VM_RAND_READ 0x00010000 /* App will not benefit from clustered reads */ - #define VM_DONTCOPY 0x00020000 /* Do not copy this vma on fork */ #define VM_DONTEXPAND 0x00040000 /* Cannot expand with mremap() */ #define VM_RESERVED 0x00080000 /* Count as reserved_vm like IO */ @@ -103,8 +99,11 @@ extern unsigned int kobjsize(const void *objp); #define VM_HUGETLB 0x00400000 /* Huge TLB Page VM */ #define VM_NONLINEAR 0x00800000 /* Is non-linear (remap_file_pages) */ #define VM_ARCH_1 0x01000000 /* Architecture-specific flag */ -#define VM_NODUMP 0x04000000 /* Do not include in the core dump */ + /* Used by sys_madvise() */ +#define VM_NODUMP 0x04000000 /* Do not include in the core dump */ +#define VM_SEQ_READ 0x08000000 /* App will access data sequentially */ +#define VM_RAND_READ 0x10000000 /* App will not benefit from clustered reads */ #define VM_HUGEPAGE 0x20000000 /* MADV_HUGEPAGE marked this vma */ #define VM_NOHUGEPAGE 0x40000000 /* MADV_NOHUGEPAGE marked this vma */ #define VM_MERGEABLE 0x80000000 /* KSM may merge identical pages */