From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH v2 2/5] direct-io: don't dirty ITER_BVEC pages on read Date: Sat, 20 Dec 2014 06:01:30 +0000 Message-ID: <20141220060130.GA22149@ZenIV.linux.org.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , Trond Myklebust , Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, Ming Lei To: Omar Sandoval Return-path: Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org On Fri, Dec 19, 2014 at 07:18:26PM -0800, Omar Sandoval wrote: > Reads through the iov_iter infrastructure for kernel pages shouldn't be > dirtied by the direct I/O code. > > This is based on Dave Kleikamp's and Ming Lei's previously posted > patches. Umm... > + dio->should_dirty = !iov_iter_is_bvec(iter); dio->should_dirty = iter_is_iovec(iter); perhaps? -- 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