VFS: make file->f_pos access atomic on 32bit arch
Review
Quoted 9 lines · Hisashi Hifumi
Protecting
file->f_poswith a lock adds some overhead but I think we should fix this.
I used seqlock to serialize the access tofile->f_pos. This approach is similar toinode->i_sizesynchronization.Comments?
(quoted diff) +2
-0+ if (offset != file_pos_read(file)) + file_pos_write(file, offset);
Maybe file_pos_write should do this check?