[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] [RFC PATCH] Track block device users that created dirty pages



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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]