lkml.org 
[lkml]   [2016]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5.1 0/2] create BLKZEROOUT ioctl that invalidates page cache
On Wed, Mar 02, 2016 at 10:15:02AM +0100, Arnd Bergmann wrote:
> I'm missing the background on this, just saw the patch fly by,
> so sorry if this has been asked before:
>
> Why do you want to invalidate the cache? Is this to save RAM
> or is something else going to write here and you have to invalidate
> it for correctness?

BLKZEROOUT can be though as a direct I/O operation - it issues a
WRITE SAME (or similar) command straight to the device to zero
the specified range. If there was cached data for this range it would
now be stale.

\
 
 \ /
  Last update: 2016-03-02 11:22    [W:0.271 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site