read_block bug fixed.
commitc0866380f4ea8e55e6822f803a0db358dc87ae49
authorGuanqun Lu <guanqun.lu@gmail.com>
Sat, 3 May 2008 02:34:23 +0000 (3 10:34 +0800)
committerGuanqun Lu <guanqun.lu@gmail.com>
Sat, 3 May 2008 02:39:55 +0000 (3 10:39 +0800)
tree16e2791dda17318fa4715e9bbe3d214af0267c2e
parent71974223e64327ab49c11a413eda1799d940f82c
read_block bug fixed.

read block should first check whether this block is mapped or not,
if it's not mapped, it should invoke ide_read, but if it has already
been mapped, it just MUST NOT invoke ide_read, because, otherwise,
the modified page would be erased with the data on the disk.
My original implementation didn't handle it well, but now, fixed :-)

Signed-off-by: Guanqun Lu <guanqun.lu@gmail.com>
fs/fs.c