diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-09-19 08:37:21 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-09-19 08:37:21 -0700 |
| commit | 12f189a18113958566b83dce8182fc4452cd6c4b (patch) | |
| tree | 700961d1b1c4739dd25671143d3814579c5d9ef1 /include | |
| parent | e19941e9cdc0c90910663e8d2b4abb498d3f04cd (diff) | |
[PATCH] reduced locking in release_pages()
From Marcus Alanen <maalanen@ra.abo.fi>
Don't retake the zone lock after spilling a batch of pages into the
buddy.
Instead, just clear local variable `zone' to indicate that no lock is
held.
This is actually a common case - whenever release_pages() is called
with exactly 16 pages (truncate, page reclaim..) Marcus' patch will
save a lock and an unlock.
Also, remove some lock-avoidance heuristics in
pagevec_deactivate_inactive(): the caller has already made these
checks, and the chance of the check here actually doing anything useful
is negligible.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
