summaryrefslogtreecommitdiff
path: root/fs/nilfs2/segbuf.h
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-09-06 17:49:49 +0900
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-09-14 18:27:13 +0900
commit143511046765504d2d1be633efd710f8d84e0407 (patch)
treebd9b8570880cfda44a9fad7a2567b977ab53f631 /fs/nilfs2/segbuf.h
parent027d6404eb4327878454db72a006adfcb8001bb8 (diff)
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 'fs/nilfs2/segbuf.h')
0 files changed, 0 insertions, 0 deletions