On Sat, Apr 24, 2004 at 10:20:56 +0100, Christoph Hellwig wrote: > On Sat, Apr 24, 2004 at 10:44:46AM +0200, Jan Hudec wrote: > > On Fri, Apr 23, 2004 at 17:37:38 +0100, Christoph Hellwig wrote: > > > in 2.4 writepage is always the result of data dirtied by mmap. In 2.6 it's > > > also for use for data dirtied by write. Even in 2.4 there's no gurantee > > > the mapping that dirtied the page still exists when the page is written out > > > by the VM. > > > > No, It's the same in 2.4 and 2.6 -- both may use writepage for write > > (depends on how you implement your commit_write). > > Well, okay. At least xfs uses writepage and some network filesystems do > aswell. The filesystems using generic fs/buffer.c routines don't use > writepage at least.. Looked at ext2 code... OK, in 2.4 the generic_commit_write goes right to buffer cache. So filesystems using it do not use writepage. But filesystems may set_page_dirty in commit_write and that would mean writepage. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec