[PATCH] locked page handling in shrink_cache()

alad@hss.hns.com
Mon, 7 Jan 2002 11:52:58 +0530


--0__=xWseNyNQTyz9w5GrzNa9mgPTH818sG6DS8o5J9D1If6EmlWRW2AD279j
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline

Whenever the shrink_cache wakes up after a laundered page in unlocked, it should
move that page to the end of inactive list so that
the page can be freed immediately and shrink_cache dosen't have to wait for
complete list scan before freeing this page.

The patch is created against standard redhat 7.1 distribution 2.4.16 kernel.
Let me know if I need to create it for a different kernel release.

Regards
Amol
(See attached file: vmscan.c-2.4.16)

--0__=xWseNyNQTyz9w5GrzNa9mgPTH818sG6DS8o5J9D1If6EmlWRW2AD279j
Content-type: application/octet-stream;
name="vmscan.c-2.4.16"
Content-Disposition: attachment; filename="vmscan.c-2.4.16"
Content-transfer-encoding: base64

LS0tIHZtc2Nhbl9vcmlnLmMJTW9uIEphbiAgNyAxMTo0Nzo0MyAyMDAyCisrKyB2bXNjYW4uYwlN
b24gSmFuICA3IDExOjQ5OjA3IDIwMDIKQEAgLTM4Nyw2ICszODcsOCBAQAogCQkJCXdhaXRfb25f
cGFnZShwYWdlKTsKIAkJCQlwYWdlX2NhY2hlX3JlbGVhc2UocGFnZSk7CiAJCQkJc3Bpbl9sb2Nr
KCZwYWdlbWFwX2xydV9sb2NrKTsKKwkJCQlsaXN0X2RlbChwYWdlLT5scnUpOworCQkJCWxpc3Rf
YWRkKHBhZ2UtPmxydSxpbmFjdGl2ZV9saXN0LnByZXYpOwogCQkJfQogCQkJY29udGludWU7CiAJ
CX0K

--0__=xWseNyNQTyz9w5GrzNa9mgPTH818sG6DS8o5J9D1If6EmlWRW2AD279j--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/