nilfs2: see state of root dentry for mount check of snapshots
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 13 Sep 2010 02:16:34 +0000 (11:16 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 23 Oct 2010 00:24:38 +0000 (09:24 +0900)
After applied the patch that unified sb instances, root dentry of
snapshots can be left in dcache even after their trees are unmounted.

The orphan root dentry/inode keeps a root object, and this causes
false positive of nilfs_checkpoint_is_mounted function.

This resolves the issue by having nilfs_checkpoint_is_mounted test
whether the root dentry is busy or not.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>

No differences found