summaryrefslogtreecommitdiffstats
path: root/fs/hfs/mdb.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2011-03-27 22:50:49 +0900
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2011-03-30 10:45:31 +0900
commit34094537943113467faee98fe67c8a3d3f9a0a8b (patch)
treeb848b18c90bfd29655e5806e81c54d02946c980d /fs/hfs/mdb.c
parent0ce790e7d736cedc563e1fb4e998babf5a4dbc3d (diff)
downloadop-kernel-dev-34094537943113467faee98fe67c8a3d3f9a0a8b.zip
op-kernel-dev-34094537943113467faee98fe67c8a3d3f9a0a8b.tar.gz
nilfs2: fix data loss in mmap page write for hole blocks
From the result of a function test of mmap, mmap write to shared pages turned out to be broken for hole blocks. It doesn't write out filled blocks and the data will be lost after umount. This is due to a bug that the target file is not queued for log writer when filling hole blocks. Also, nilfs_page_mkwrite function exits normal code path even after successfully filled hole blocks due to a change of block_page_mkwrite function; just after nilfs was merged into the mainline, block_page_mkwrite() started to return VM_FAULT_LOCKED instead of zero by the patch "mm: close page_mkwrite races" (commit: b827e496c893de0c). The current nilfs_page_mkwrite() is not handling this value properly. This corrects nilfs_page_mkwrite() and will resolve the data loss problem in mmap write. [This should be applied to every kernel since 2.6.30 but a fix is needed for 2.6.37 and prior kernels] Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Tested-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Cc: stable <stable@kernel.org> [2.6.38]
Diffstat (limited to 'fs/hfs/mdb.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud