summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-09-06 10:49:49 +0200
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-09-14 11:27:13 +0200
commit143511046765504d2d1be633efd710f8d84e0407 (patch)
treebd9b8570880cfda44a9fad7a2567b977ab53f631 /arch/powerpc
parentnilfs2: use semaphore to protect pointer to a writable FS-instance (diff)
downloadlinux-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