>>>>> " " == Ulrich Kunitz <gefm21@uumail.de> writes:
> I argue for implementing the syncing stuff on the page cache,
> this way you could use the code also for NFS (fsync(),
> fdatasync() and/or O_SYNC).
NFS already does O_SYNC correctly. Look carefully at the
'if (synchronous)' case at then end of nfs_updatepage().
That said, if you were thinking of changing the f_ops->fsync to sync
on a subrange of the file
file->fsync(file, page->index_begin, page->index_end);
or something along those lines, then that is something that might make
sense as a generic way of implementing O_SYNC. That could then be put
into generic_file_write().
Cheers,
Trond
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:10 EST