]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: fix dirty page accounting leak causing hang at write
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 2 Nov 2009 15:25:53 +0000 (00:25 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 3 Nov 2009 03:31:36 +0000 (12:31 +0900)
commit8e2db97c7d3afa426ca51c6b7be5d073a97769e9
treebdc23c9fcc4bfe58787b63e9c739c0692b79dc4d
parent2eb8b05f1bad924f5879f2676664e38bbb8188b0
nilfs2: fix dirty page accounting leak causing hang at write

Bruno Prémont and Dunphy, Bill noticed me that NILFS will certainly
hang on ARM-based targets.

I found this was caused by an underflow of dirty pages counter.  A
b-tree cache routine was marking page dirty without adjusting page
account information.

This fixes the dirty page accounting leak and resolves the hang on
arm-based targets.

Reported-by: Bruno Prémont <bonbons@linux-vserver.org>
Reported-by: Dunphy, Bill <WDunphy@tandbergdata.com>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tested-by: Bruno Prémont <bonbons@linux-vserver.org>
Cc: stable <stable@kernel.org>
fs/nilfs2/btnode.c