Subject: Re: fsync_range() system call
To: Bill Studenmund <wrstuden@netbsd.org>
From: Klaus Klein <kleink@reziprozitaet.de>
List: tech-kern
Date: 10/25/2003 11:30:37
On Saturday 25 October 2003 00:23, Bill Studenmund wrote:

> +       flags = SCARG(uap, flags);
> +       if ((flags & (FDATASYNC | FFILESYNC)) == 0) {
> +               /* Do we care? */
> +       }
> +       if (flags & FDATASYNC)
> +               flags = FSYNC_DATASYNC | FSYNC_WAIT;
> +       else
> +               flags = FSYNC_WAIT;

One additional style nit: please don't reuse the flags variable.


- Klaus