nilfs2: fix potential leak of dirty data on umount
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 31 Jan 2010 03:39:50 +0000 (12:39 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 31 Jan 2010 05:57:31 +0000 (14:57 +0900)
commit3256a05531b1164a9c138da701b922a113bddf82
treecbaf7f9c6ee23683eef59922ae08e60da110a487
parentabe94c756c08d50566c09a65b9c7fe72f83071c5
nilfs2: fix potential leak of dirty data on umount

This fixes incorrect usage of nilfs_segctor_confirm() test function in
nilfs_segctor_destroy(); nilfs_segctor_confirm() returns zero if the
filesystem is not clean, so its use in nilfs_segctor_destroy() needs
inversion.

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