[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090403085503.GC6084@localhost>
Date: Fri, 3 Apr 2009 16:55:03 +0800
From: Wu Fengguang <fengguang.wu@...el.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Ying Han <yinghan@...gle.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, mingo@...e.hu, mikew@...gle.com,
rientjes@...gle.com, rohitseth@...gle.com, hugh@...itas.com,
a.p.zijlstra@...llo.nl, hpa@...or.com, edwintorok@...il.com,
lee.schermerhorn@...com, npiggin@...e.de
Subject: [PATCH] vfs: reduce page fault retry code
find_lock_page_retry() works the same way as find_lock_page()
when retry_flag=0. And their return value handling shall work
(almost) in the same way, or it will already be a bug.
So the !retry_flag special casing can be eliminated.
Cc: Ying Han <yinghan@...gle.com>
Signed-off-by: Wu Fengguang <fengguang.wu@...el.com>
---
mm/filemap.c | 7 -------
1 file changed, 7 deletions(-)
--- mm.orig/mm/filemap.c
+++ mm/mm/filemap.c
@@ -1663,13 +1663,6 @@ no_cached_page:
* meantime, we'll just come back here and read it again.
*/
if (error >= 0) {
- /*
- * If caller cannot tolerate a retry in the ->fault path
- * go back to check the page again.
- */
- if (!retry_flag)
- goto retry_find;
-
retry_ret = find_lock_page_retry(mapping, vmf->pgoff,
vma, &page, retry_flag);
if (retry_ret == VM_FAULT_RETRY)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists