From: Christoph Hellwig Subject: Re: [RFC PATCH] Track block device users that created dirty pages Date: Fri, 6 Jan 2012 09:41:34 -0500 Message-ID: <20120106144134.GA17498@infradead.org> References: <1325632496-5524-1-git-send-email-snitzer@redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development Cc: Heinz Mauelshagen , Edward Thornber , Mike Snitzer , "Alasdair G. Kergon" , Zdenek Kabelac List-Id: dm-devel.ids On Thu, Jan 05, 2012 at 07:58:34PM -0500, Mikulas Patocka wrote: > Hi > > This is the patch for selective flushing on block devices. Only processes > that created some dirty data in the pagecache flush the pagecache when > closing the device. The processes that didn't create any dirty data (for > example lvm, when using direct io) don't flush the cache when closing the > device. > > Mikulas > > --- > > Track block device users that created dirty pages > > This patch adds a new field f_driver_flags to struct file. The field may > be used by the driver for any purpose. Please use file->private for that kind of usage.