There seems to be no easy way to go from buffer -> inode... Does anyone
else know of a way? it would be handy for this case. Otherwise you have
to write all the dirty buffers (on the device), which can hurt on a busy
system... this would work to the extent that file_fsync (fsync_dev) will
work.
<snip>
> Define big_file something like
>
> (number of blocks in file > number of blocks in kernel buffers)
prolly smaller, but that is the idea. Ideally, it would use some threshold
having to do with the number of dirty blocks.
---------------------------------------------------------------
Gordon Oliver (gordo@telsur.cl) Independent Consultant
... Available for consulting on Linux ...