Re: move block #A to block #B on a given device.

Mikulas Patocka (mikulas@artax.karlin.mff.cuni.cz)
Fri, 5 Nov 1999 15:54:08 +0100 (CET)


> > > > don't want to read block B as its data is going to be discarded anyway,
> > > > why generate extra io?
> > >
> > > Exactly.
> >
> > I think doing pure getblk is wrong (someone else can call bread and
> > overwrite data in buffer). There should be bh = getblk();
> > mark_buffer_uptodate(bh, 1)
>
> Yes, of course. Also

BTW. neither getblk nor mark_buffer_uptodate check for i/o completion.
Isn't it race? Many filesystem do it this way.

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/