From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wli by holomorphy with local (Exim 3.34 #1 (Debian)) id 17uRQr-0002m5-00 for ; Wed, 25 Sep 2002 22:43:25 -0700 Date: Wed, 25 Sep 2002 22:43:25 -0700 From: William Lee Irwin III Subject: [12/13] use __GFP_NOKILL in read_cache_page() Message-ID: <20020926054325.GS22942@holomorphy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Description: brief message Content-Disposition: inline Sender: owner-linux-mm@kvack.org Return-Path: To: linux-mm@kvack.org List-ID: read_cache_page() may be failed instead of killing innocent tasks. diff -urN linux-2.5.33/mm/filemap.c linux-2.5.33-mm5/mm/filemap.c --- linux-2.5.33/mm/filemap.c 2002-09-04 04:02:00.000000000 -0700 +++ linux-2.5.33-mm5/mm/filemap.c 2002-09-08 20:04:53.000000000 -0700 @@ -1199,7 +1199,7 @@ page = find_get_page(mapping, index); if (!page) { if (!cached_page) { - cached_page = page_cache_alloc(mapping); + cached_page = alloc_page(mapping->gfp_mask | __GFP_NOKILL); if (!cached_page) return ERR_PTR(-ENOMEM); } -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/