diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-09-06 10:49:49 +0200 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-09-14 11:27:13 +0200 |
commit | 143511046765504d2d1be633efd710f8d84e0407 (patch) | |
tree | bd9b8570880cfda44a9fad7a2567b977ab53f631 /arch/powerpc | |
parent | nilfs2: use semaphore to protect pointer to a writable FS-instance (diff) | |
download | linux-143511046765504d2d1be633efd710f8d84e0407.tar.xz linux-143511046765504d2d1be633efd710f8d84e0407.zip |
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 <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions