diff options
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/vmsystm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/sys/vmsystm.h b/include/sys/vmsystm.h index 2fa169523..9d334fe0a 100644 --- a/include/sys/vmsystm.h +++ b/include/sys/vmsystm.h @@ -35,7 +35,10 @@ #define membar_producer() smp_wmb() #define physmem totalram_pages -#define freemem nr_free_pages() +#define freemem (nr_free_pages() + \ + global_page_state(NR_INACTIVE_FILE) + \ + global_page_state(NR_INACTIVE_ANON) + \ + global_page_state(NR_SLAB_RECLAIMABLE)) #define xcopyin(from, to, size) copy_from_user(to, from, size) #define xcopyout(from, to, size) copy_to_user(to, from, size) |