From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754177AbbFJHff (ORCPT ); Wed, 10 Jun 2015 03:35:35 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:44978 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754013AbbFJHf0 (ORCPT ); Wed, 10 Jun 2015 03:35:26 -0400 Date: Wed, 10 Jun 2015 00:35:26 -0700 From: Christoph Hellwig To: Ming Lei Cc: linux-kernel@vger.kernel.org, Dave Kleikamp , Jens Axboe , Zach Brown , Christoph Hellwig , Maxim Patlasov , Andrew Morton , Alexander Viro , Tejun Heo , Dave Chinner Subject: Re: [PATCH v5 1/5] fs: direct-io: don't dirtying pages for ITER_BVEC/ITER_KVEC direct read Message-ID: <20150610073526.GA6964@infradead.org> References: <1433857766-6153-1-git-send-email-ming.lei@canonical.com> <1433857766-6153-2-git-send-email-ming.lei@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433857766-6153-2-git-send-email-ming.lei@canonical.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 09, 2015 at 09:49:22PM +0800, Ming Lei wrote: > When direct read IO is submitted from kernel, it is often > unnecessary to dirty pages, for example of loop, dirtying pages > have been considered in the upper filesystem(over loop) side > already, and they don't need to be dirtied again. > > So this patch doesn't dirtying pages for ITER_BVEC/ITER_KVEC > direct read, and loop should be the 1st case to use ITER_BVEC/ITER_KVEC > for direct read I/O. > > The patch is based on previous Dave's patch. Looks good, thanks! Reviewed-by: Christoph Hellwig