nilfs2: fix hang problem of log writer which occurs after write failures
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Thu, 18 Jun 2009 14:52:23 +0000 (23:52 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 5 Jul 2009 01:44:20 +0000 (10:44 +0900)
commit8227b29722fdbac72357aae155d171a5c777670c
treed44631f3aac26da4cdcd2abd8b0f1d8661fc59b5
parent0cfae3d8795f388f9de78adb0171520d19da77e9
nilfs2: fix hang problem of log writer which occurs after write failures

Leandro Lucarella gave me a report that nilfs gets stuck after its
write function fails.

The problem turned out to be caused by bugs which leave writeback flag
on pages.  This fixes the problem by ensuring to clear the writeback
flag in error path.

Reported-by: Leandro Lucarella <llucax@gmail.com>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Cc: stable@kernel.org
fs/nilfs2/segment.c