> > 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
- how to write get_block? Mikulas Patocka
- Re: how to write get_block? Jan Kara
- Re: how to write get_block? Mikulas Patocka
- Re: how to write get_block? Alexander Viro
- Re: how to write get_block? Mikulas Patocka
- [possible race in ext2] Re: how to write... Alexander Viro
- Re: [possible race in ext2] Re: how... Mikulas Patocka
- Re: [possible race in ext2] Re: how... Ingo Molnar
- Re: [possible race in ext2] Re:... Mikulas Patocka
- Re: [possible race in ext2] Re:... Alexander Viro
- Re: [possible race in ext2]... Matti Aarnio
- Re: [possible race in ext2]... Ingo Molnar
- [patch] [possible race in ext2] Re:... Mikulas Patocka
- Re: [patch] [possible race in e... Andrea Arcangeli
- Re: [patch] [possible race ... Ingo Molnar
- Re: [patch] [possible race ... Andrea Arcangeli
- [patch] 2.3.20 simple fs-co... Andrea Arcangeli