diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-09-12 22:16:34 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-10-22 20:24:38 -0400 |
commit | 032dbb3b503a30fce732ec4c05525d0abed1f1d6 (patch) | |
tree | 462696abcf0783d50efe97a3ca2641beecc91a3e /fs/nilfs2/the_nilfs.h | |
parent | f1e89c86fdd0f5e59f6768146c86437934202033 (diff) |
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>
Diffstat (limited to 'fs/nilfs2/the_nilfs.h')
-rw-r--r-- | fs/nilfs2/the_nilfs.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nilfs2/the_nilfs.h b/fs/nilfs2/the_nilfs.h index a5178dc43dfd..cae56f338b64 100644 --- a/fs/nilfs2/the_nilfs.h +++ b/fs/nilfs2/the_nilfs.h | |||
@@ -242,7 +242,6 @@ struct nilfs_root *nilfs_find_or_create_root(struct the_nilfs *nilfs, | |||
242 | __u64 cno); | 242 | __u64 cno); |
243 | void nilfs_put_root(struct nilfs_root *root); | 243 | void nilfs_put_root(struct nilfs_root *root); |
244 | struct nilfs_sb_info *nilfs_find_sbinfo(struct the_nilfs *, int, __u64); | 244 | struct nilfs_sb_info *nilfs_find_sbinfo(struct the_nilfs *, int, __u64); |
245 | int nilfs_checkpoint_is_mounted(struct the_nilfs *, __u64, int); | ||
246 | int nilfs_near_disk_full(struct the_nilfs *); | 245 | int nilfs_near_disk_full(struct the_nilfs *); |
247 | void nilfs_fall_back_super_block(struct the_nilfs *); | 246 | void nilfs_fall_back_super_block(struct the_nilfs *); |
248 | void nilfs_swap_super_block(struct the_nilfs *); | 247 | void nilfs_swap_super_block(struct the_nilfs *); |