[dm-devel] [RFC PATCH] Track block device users that created dirty pages
Christoph Hellwig
hch at infradead.org
Fri Jan 6 14:41:34 UTC 2012
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.
More information about the dm-devel
mailing list