]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: fix infinite loop in nilfs_palloc_freev function
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 10 May 2011 11:59:34 +0000 (20:59 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 10 May 2011 13:19:50 +0000 (22:19 +0900)
commitf2150c3fcde335a7c2bc070fa6026abced18ba8b
treeaaa278f89f4425332dccc37c18f44603f042eaf1
parent2787d12aaa42cb4b78bad463394a382a6cb6cadc
nilfs2: fix infinite loop in nilfs_palloc_freev function

After having applied commit 3cab23a63767dc97 ("nilfs2: add free
entries count only if clear bit operation succeeded"), a free routine
of nilfs came to fall into an infinite loop, outputting the same
message endlessly:

 nilfs_palloc_freev: entry number 29497 already freed
 nilfs_palloc_freev: entry number 29497 already freed
 nilfs_palloc_freev: entry number 29497 already freed
 nilfs_palloc_freev: entry number 29497 already freed
 nilfs_palloc_freev: entry number 29497 already freed ...

That patch broke the routine so that a loop counter is never updated
in an abnormal state.  This fixes the regression.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/alloc.c