diff options
author | David Hildenbrand <david@redhat.com> | 2023-12-20 23:44:46 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-29 11:58:52 -0800 |
commit | 0cae959e3abf19ba62805f6e6a8b42b6cd9ed3e3 (patch) | |
tree | 210c50421f554f13a413eeddc58f90673a10ce69 /include | |
parent | 84f0169e6c8a613012722e0d63302f9da4a72099 (diff) |
mm/rmap: remove RMAP_COMPOUND
No longer used, let's remove it and clarify RMAP_NONE/RMAP_EXCLUSIVE a
bit.
Link: https://lkml.kernel.org/r/20231220224504.646757-23-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Yin Fengwei <fengwei.yin@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/rmap.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h index fe7b5a8b0e75..bf6cb79aa7a0 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h @@ -177,21 +177,15 @@ struct anon_vma *folio_get_anon_vma(struct folio *folio); typedef int __bitwise rmap_t; /* - * No special request: if the page is a subpage of a compound page, it is - * mapped via a PTE. The mapped (sub)page is possibly shared between processes. + * No special request: A mapped anonymous (sub)page is possibly shared between + * processes. */ #define RMAP_NONE ((__force rmap_t)0) -/* The (sub)page is exclusive to a single process. */ +/* The anonymous (sub)page is exclusive to a single process. */ #define RMAP_EXCLUSIVE ((__force rmap_t)BIT(0)) /* - * The compound page is not mapped via PTEs, but instead via a single PMD and - * should be accounted accordingly. - */ -#define RMAP_COMPOUND ((__force rmap_t)BIT(1)) - -/* * Internally, we're using an enum to specify the granularity. We make the * compiler emit specialized code for each granularity. */ |