A possibly simple change would be another buffer state: "dependent
dirty". Unlike dirty buffers they are not flushed and they're not on
the dirty list; instead, they are linked to from an ordinary dirty
buffer.
After an ordinary dirty buffer is written or flushed, its "dependent
dirty" buffers are changed to "dirty" and they will eventually be
written too. Thus you get a partial write ordering.
The API is mark_buffer_dependent_dirty(buffer, parent), nothing more.
-- Jamie
-
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/