diff options
author | David Rientjes <[email protected]> | 2009-09-21 17:04:31 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-09-22 07:17:47 -0700 |
commit | 4af5a2f770cc8575840ccb1514ec76ecb592985c (patch) | |
tree | 7af18234d7d171a946925e65e987fd51648be3aa /net/lapb/lapb_subr.c | |
parent | 19da3dd157f8db6fe727ff268dab4791d55a6371 (diff) |
flex_array: add flex_array_shrink function
Add a new function to the flex_array API:
int flex_array_shrink(struct flex_array *fa)
This function will free all unused second-level pages. Since elements are
now poisoned if they are not allocated with __GFP_ZERO, it's possible to
identify parts that consist solely of unused elements.
flex_array_shrink() returns the number of pages freed.
Signed-off-by: David Rientjes <[email protected]>
Cc: Dave Hansen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions