Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp265828pxa; Thu, 27 Aug 2020 01:26:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBiUYjrPFHj8hwhzIpjZE6/JdmOpBFbqcTEEv6a/OczojW1wWDu7pjxzWRkdzopEgOBihC X-Received: by 2002:aa7:cf19:: with SMTP id a25mr18141502edy.67.1598516763299; Thu, 27 Aug 2020 01:26:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598516763; cv=none; d=google.com; s=arc-20160816; b=S7Vtd9STPR2Ekjv8l+oI0bpc4pJiaghvmvjkOoYWwdNJOeZubi8IcWjQScMy0LpQzf wP9lPvBJwnuX9e/tSgSyxFQo78C6s2MlGpSv0yfGtfHhFo3D7E5GJqfEvNNcFEOxdBy1 r0BcJa3u/d/FPI+IbQ2rIIJVTM11Eglo/X32o0LoOjl0L+eWgeKUYDMsGaEyHawnmuCk zwMUaVkOt1+gD5JsJiRHuBspVSkC3Z4V3s0R7kNRaS4AZus2PhiJFHofgU46Ep07bfzt gjtcICSqiedxSRXwAu2AXCSqwAM6xXgiVEHKbTCjROK53S3UzEhC7opxeTrT0G42jKIw IhpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wRVRvBwHw4mKLQT5BkBZOHmTkNVsAilc82JLzdgdiFQ=; b=MN0H/vzuSIHmCiTBl+CYtnYrChjTz+9zKDwxIkss32h6LwYnUciuw+8LtoPO7lz/YO awia85i35/X++7z38uogJHAL1sbpae7qy0zq6FYo9SzfEzxRvjXsLkfQ3m4aMWdfzsf/ lHT83637s3Hy+pelW95Q1rZFy87V6KGCCErD/PcKeej45ao6BbydPZ83QHvw+NYicdVO QxgQxrcz6BbF5at6mj8JiP7mZnARCxsUQJKoxjvutzFcFxzJCpbJTVEHFBaeQzqJ7Aet hnAFP0Xqo4mmDKLNmdUSJMy7VUvJCY09FiJNQOZYfLL7n2Qt9yMSGaCDi8tIgWDwO5zb S6aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=WYZeTVhc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q20si966049ejb.45.2020.08.27.01.25.40; Thu, 27 Aug 2020 01:26:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=WYZeTVhc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728358AbgH0IYQ (ORCPT + 99 others); Thu, 27 Aug 2020 04:24:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728363AbgH0IYM (ORCPT ); Thu, 27 Aug 2020 04:24:12 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5056AC06121B; Thu, 27 Aug 2020 01:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=wRVRvBwHw4mKLQT5BkBZOHmTkNVsAilc82JLzdgdiFQ=; b=WYZeTVhcyUgsEJuYehPDTfQeC6 hdIJ+GHDZ7Lx85RR9NSO7b703Fd8D+0WUXycpsHfrAye2jxLdcvRrKf4CedVG70eq5TN9sbDoy/Ie lxGlcYIMfI7tHsWaBRdMIxerlgj3jwMc5mqrifjYZtvcSM1rLfHZTyyaJ8sZB/zvuL3M8wv3zzHnu pqOqjDW5ZKIDtXKGLF754ib/kRd6NPyidkl6fR3J5ex535yLT5GDOOQNuuHewALlii+CQ2xOymSPO Z84Eko0WFWpIn4//Yz5HWmb0hPbB5vskC1vlUbvk4gO/E6x7QPwaeEL8uPlML7pGiD7XxWcN2QuMa VOUcyflg==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBDCb-00030m-29; Thu, 27 Aug 2020 08:24:09 +0000 Date: Thu, 27 Aug 2020 09:24:08 +0100 From: Christoph Hellwig To: "Matthew Wilcox (Oracle)" Cc: linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, "Darrick J . Wong" , linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/9] iomap: Fix misplaced page flushing Message-ID: <20200827082408.GA11067@infradead.org> References: <20200824145511.10500-1-willy@infradead.org> <20200824145511.10500-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200824145511.10500-2-willy@infradead.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 24, 2020 at 03:55:02PM +0100, Matthew Wilcox (Oracle) wrote: > diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c > index bcfc288dba3f..cffd575e57b6 100644 > --- a/fs/iomap/buffered-io.c > +++ b/fs/iomap/buffered-io.c > @@ -715,6 +715,7 @@ iomap_write_end_inline(struct inode *inode, struct page *page, > { > void *addr; > > + flush_dcache_page(page); > WARN_ON_ONCE(!PageUptodate(page)); > BUG_ON(pos + copied > PAGE_SIZE - offset_in_page(iomap->inline_data)); Please move the call down below the asserts. Otherwise looks good: Reviewed-by: Christoph Hellwig