nilfs2: fix memory leak in nilfs_ioctl_clean_segments
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 22 May 2009 11:36:21 +0000 (20:36 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 22 May 2009 11:49:04 +0000 (20:49 +0900)
commitd5046853634a8d73f28bad3cf68d182c4a99035d
treec294fce63b57763df341ab31189cd3c89529d879
parent1406de8e11eb043681297adf86d6892ff8efc27a
nilfs2: fix memory leak in nilfs_ioctl_clean_segments

This fixes a new memory leak problem in garbage collection.  The
problem was brought by the bugfix patch ("nilfs2: fix lock order
reversal in nilfs_clean_segments ioctl").

Thanks to Kentaro Suzuki for finding this problem.

Reported-by: Kentaro Suzuki <k_suzuki@ms.sylc.co.jp>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/ioctl.c