diff options
| author | Linus Torvalds <torvalds@athlon.transmeta.com> | 2002-02-04 20:30:11 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@athlon.transmeta.com> | 2002-02-04 20:30:11 -0800 |
| commit | 5db5272c0a5cd37e5a697e4750fbc4ce6317b7dc (patch) | |
| tree | ebb132cbe03d613b01bea25c3c552360c8acb2ec /include/linux/mm.h | |
| parent | aad40ef3f2b9c4077e5a79606aed24a92ccb0406 (diff) | |
v2.4.14 -> v2.4.14.1
- me: fix page flags race condition Andrea found
- David Miller: sparc and network updates
- various: fix loop driver that thought it was part of the VM system
- me: teach DRM about VM_RESERVED
- Alan Cox: more merging
Diffstat (limited to 'include/linux/mm.h')
| -rw-r--r-- | include/linux/mm.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index e128b2f84bc0..171bf9e410d1 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -271,8 +271,8 @@ typedef struct page { #define PG_uptodate 3 #define PG_dirty 4 #define PG_unused 5 -#define PG_active 6 -#define PG_inactive 7 +#define PG_lru 6 +#define PG_active 7 #define PG_slab 8 #define PG_skip 10 #define PG_highmem 11 @@ -320,14 +320,10 @@ extern void FASTCALL(set_page_dirty(struct page *)); #define PageActive(page) test_bit(PG_active, &(page)->flags) #define SetPageActive(page) set_bit(PG_active, &(page)->flags) #define ClearPageActive(page) clear_bit(PG_active, &(page)->flags) -#define TestandSetPageActive(page) test_and_set_bit(PG_active, &(page)->flags) -#define TestandClearPageActive(page) test_and_clear_bit(PG_active, &(page)->flags) - -#define PageInactive(page) test_bit(PG_inactive, &(page)->flags) -#define SetPageInactive(page) set_bit(PG_inactive, &(page)->flags) -#define ClearPageInactive(page) clear_bit(PG_inactive, &(page)->flags) -#define TestandSetPageInactive(page) test_and_set_bit(PG_inactive, &(page)->flags) -#define TestandClearPageInactive(page) test_and_clear_bit(PG_inactive, &(page)->flags) + +#define PageLRU(page) test_bit(PG_lru, &(page)->flags) +#define TestSetPageLRU(page) test_and_set_bit(PG_lru, &(page)->flags) +#define TestClearPageLRU(page) test_and_clear_bit(PG_lru, &(page)->flags) #ifdef CONFIG_HIGHMEM #define PageHighMem(page) test_bit(PG_highmem, &(page)->flags) |
