From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [RFC] VFS: File System Mount Wide O_DIRECT Support Date: Tue, 4 Sep 2012 06:57:14 -0400 Message-ID: <20120904105714.GA31020@infradead.org> References: <000001cd8a86$89df83b0$9d9e8b10$@edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: viro@zeniv.linux.org.uk, axboe@kernel.dk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Li Wang Return-path: Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:44746 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752761Ab2IDK5Y (ORCPT ); Tue, 4 Sep 2012 06:57:24 -0400 Content-Disposition: inline In-Reply-To: <000001cd8a86$89df83b0$9d9e8b10$@edu.cn> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Sep 04, 2012 at 06:17:47PM +0800, Li Wang wrote: > For file system created on file-backed loop device, there will be two-levels of > page cache present, which typically doubles the memory consumption. And the right fix is to not use buffer I/O on the backing file instead of hacks like this.