lkml.org 
[lkml]   [2008]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] VFS: make file->f_pos access atomic on 32bit arch
Date
On Tuesday 16 September 2008 21:11, Michael Trimarchi wrote:
> Hi,
>
> > + if (offset != file_pos_read(file))
> > + file_pos_write(file, offset);
> > retval = offset;
> > }
>
> Is not more efficient here a compare xchg operation?

The compiler should do it if it was.


\
 
 \ /
  Last update: 2008-09-16 14:57    [W:0.025 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site