> > You have a directory and change something in it - there are dirty hashed
> > buffers covering directory. 
> > 
> > You erase that directory - as there is no bforget, there are still dirty
> > hashed buffers.
> > 
> > You alloc file at that place. Buffers containing former directory are
> > flushed over the file.
> > 
> > I think bforget must be called always when you release some structure that
> > was accessed using bread/brelse. 

When writing this I thought of fat (assuming that ext2 is already
BugFree(TM) :-), but yes - it applies to ext2 and all other filesystems as
well.

Mikulas Patocka

Reply via email to