lkml.org 
[lkml]   [2008]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Metadata in sys_sync_file_range and fadvise(DONTNEED)
From
On Wed, Nov 5, 2008 at 5:07 PM, Andrew Morton <akpm@linux-foundation.org> wrote:
> On Wed, 5 Nov 2008 16:56:54 -0800
> Chad Talbott <ctalbott@google.com> wrote:
>> So in the new world, an application should call sync_file_range
>> (solving my problem by including metadata) to initiate writeout, and
>> then call posix_fadvise(DONTNEED) to drop the pages from page cache?
>> I think this would work for me.
>
> That would work.
>
> Although Nick is threatening to make
> sync_file_range(SYNC_FILE_RANGE_WRITE) all slow by using WB_SYNC_ALL,
> probably unnecessarily, ho hum.

Boo! That will drive users (me at least) running back to
posix_fadvise(DONTNEED) for the non-blocking-writeback-inducing side
effect.

Chad


\
 
 \ /
  Last update: 2008-11-06 02:29    [W:0.068 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site