Re: [possible race in ext2] Re: how to write get_block?

Mikulas Patocka (mikulas@artax.karlin.mff.cuni.cz)
Fri, 8 Oct 1999 17:52:34 +0200 (CEST)


> > 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

-
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/