From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: [PATCH 03/14] mm: remove FAULT_FLAG_RETRY dead code Date: Tue, 07 Apr 2009 15:17:32 +0800 Message-ID: <20090407072133.053995305@intel.com> References: <20090407071729.233579162@intel.com> Cc: Ying Han , LKML , , , Wu Fengguang To: Andrew Morton Return-path: Content-Disposition: inline; filename=memory-fault-retry-simp.patch Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org Cc: Ying Han Signed-off-by: Wu Fengguang --- mm/memory.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- mm.orig/mm/memory.c +++ mm/mm/memory.c @@ -2766,10 +2766,8 @@ static int do_linear_fault(struct mm_str { pgoff_t pgoff = (((address & PAGE_MASK) - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff; - int write = write_access & ~FAULT_FLAG_RETRY; - unsigned int flags = (write ? FAULT_FLAG_WRITE : 0); + unsigned int flags = (write_access ? FAULT_FLAG_WRITE : 0); - flags |= (write_access & FAULT_FLAG_RETRY); pte_unmap(page_table); return __do_fault(mm, vma, address, pmd, pgoff, flags, orig_pte); } -- -- 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/ . Don't email: email@kvack.org