From: Ryusuke Konishi Date: Sun, 6 Sep 2009 08:49:49 +0000 (+0900) Subject: nilfs2: always lookup disk block address before reading metadata block X-Git-Tag: v2.6.32-rc1~700^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=143511046765504d2d1be633efd710f8d84e0407;p=pandora-kernel.git nilfs2: always lookup disk block address before reading metadata block The current metadata file code skips disk address lookup for its data block if the buffer has a mapped flag. This has a potential risk to cause read request to be performed against the stale block address that GC moved, and it may lead to meta data corruption. The mapped flag is safe if the buffer has an uptodate flag, otherwise it may prevent necessary update of disk address in the next read. This will avoid the potential problem by ensuring disk address lookup before reading metadata block even for buffers with the mapped flag. Signed-off-by: Ryusuke Konishi --- Reading git-diff-tree failed