lkml.org 
[lkml]   [2009]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 18/16] implement posix O_SYNC and O_DSYNC semantics
On Thu, Sep 10, 2009 at 04:38:40PM -0400, Trond Myklebust wrote:
> > return vfs_fsync_range(file, file->f_path.dentry, pos,
> > - pos + count - 1, 1);
> > + pos + count - 1,
> > + (file->f_flags & O_SYNC) ? 1 : 0);
> > }
> > EXPORT_SYMBOL(generic_write_sync);
> >
> Shouldn't this be testing for
>
> file->f_flags & __O_SYNC
>
> ?

Doesn't matter, we check early in the open path that __O_SYNC is only
set together with O_SYNC.


\
 
 \ /
  Last update: 2009-09-10 22:43    [W:0.115 / U:0.476 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site