diff options
author | Matthew Wilcox <willy@infradead.org> | 2017-11-03 13:30:42 -0400 |
---|---|---|
committer | Matthew Wilcox <willy@infradead.org> | 2018-09-29 22:47:49 -0400 |
commit | 3159f943aafdbacb2f94c38fdaadabf2bbde2a14 (patch) | |
tree | 7e06823a1ab7e90774535d17a217a939bdddda3b /arch/powerpc/include/asm/nohash/64 | |
parent | 66ee620f06f99d72475db6eb638559ba608c7dee (diff) |
xarray: Replace exceptional entries
Introduce xarray value entries and tagged pointers to replace radix
tree exceptional entries. This is a slight change in encoding to allow
the use of an extra bit (we can now store BITS_PER_LONG - 1 bits in a
value entry). It is also a change in emphasis; exceptional entries are
intimidating and different. As the comment explains, you can choose
to store values or pointers in the xarray and they are both first-class
citizens.
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Diffstat (limited to 'arch/powerpc/include/asm/nohash/64')
-rw-r--r-- | arch/powerpc/include/asm/nohash/64/pgtable.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/nohash/64/pgtable.h b/arch/powerpc/include/asm/nohash/64/pgtable.h index 7cd6809f4d33..05765c2d2c1f 100644 --- a/arch/powerpc/include/asm/nohash/64/pgtable.h +++ b/arch/powerpc/include/asm/nohash/64/pgtable.h | |||
@@ -313,9 +313,7 @@ static inline void __ptep_set_access_flags(struct vm_area_struct *vma, | |||
313 | #define MAX_SWAPFILES_CHECK() do { \ | 313 | #define MAX_SWAPFILES_CHECK() do { \ |
314 | BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \ | 314 | BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \ |
315 | } while (0) | 315 | } while (0) |
316 | /* | 316 | |
317 | * on pte we don't need handle RADIX_TREE_EXCEPTIONAL_SHIFT; | ||
318 | */ | ||
319 | #define SWP_TYPE_BITS 5 | 317 | #define SWP_TYPE_BITS 5 |
320 | #define __swp_type(x) (((x).val >> _PAGE_BIT_SWAP_TYPE) \ | 318 | #define __swp_type(x) (((x).val >> _PAGE_BIT_SWAP_TYPE) \ |
321 | & ((1UL << SWP_TYPE_BITS) - 1)) | 319 | & ((1UL << SWP_TYPE_BITS) - 1)) |