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)
commit032dbb3b503a30fce732ec4c05525d0abed1f1d6
tree462696abcf0783d50efe97a3ca2641beecc91a3e
parentf1e89c86fdd0f5e59f6768146c86437934202033
nilfs2: see state of root dentry for mount check of snapshots

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>
fs/nilfs2/cpfile.c
fs/nilfs2/inode.c
fs/nilfs2/nilfs.h
fs/nilfs2/super.c
fs/nilfs2/the_nilfs.c
fs/nilfs2/the_nilfs.h