Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762023Ab2FHIkl (ORCPT ); Fri, 8 Jun 2012 04:40:41 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:37738 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760670Ab2FHIkh (ORCPT ); Fri, 8 Jun 2012 04:40:37 -0400 Date: Fri, 8 Jun 2012 10:40:33 +0200 From: Simon Baatz To: Hugh Dickins Cc: Andrew Morton , Christoph Hellwig , KAMEZAWA Hiroyuki , Alan Cox , Stephane Marchesin , Andi Kleen , Dave Airlie , Daniel Vetter , Rob Clark , Cong Wang , linux-mm@kvack.org, linux-fsdevel@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] shmem: replace_page must flush_dcache and others Message-ID: <20120608084033.GA21818@schnuecks.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 748 Lines: 23 Hi Hugh, On Thu, May 31, 2012 at 03:31:27PM -0700, Hugh Dickins wrote: > * shmem_replace_page must flush_dcache_page after copy_highpage [akpm] > > - *pagep = newpage; > page_cache_get(newpage); > copy_highpage(newpage, oldpage); > + flush_dcache_page(newpage); > Couldn't we use the lighter flush_kernel_dcache_page() here (like in fs/exec.c copy_strings())? If I got this correctly, the page is copied via the kernel mapping and thus, only the kernel mapping needs to be flushed. - Simon -- 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/