From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wli by holomorphy with local (Exim 3.34 #1 (Debian)) id 17uRQw-0002mK-00 for ; Wed, 25 Sep 2002 22:43:30 -0700 Date: Wed, 25 Sep 2002 22:43:29 -0700 From: William Lee Irwin III Subject: [13/13] use __GFP_NOKILL in grab_cache_page Message-ID: <20020926054329.GT22942@holomorphy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-linux-mm@kvack.org Return-Path: To: linux-mm@kvack.org List-ID: grab_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 @@ -1278,7 +1278,7 @@ page = find_lock_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 NULL; } -- 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/