diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-05 10:59:33 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-05 10:59:33 -0400 |
commit | 84d08fa888e7c2d53b5bbc764db2ef02968b499c (patch) | |
tree | fa891009d778586eefdf3be8a11671ab9aefb13a /fs/nilfs2 | |
parent | 74b9272bbedf45cb01a048217830d64d59aaa73b (diff) |
helper for reading ->d_count
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r-- | fs/nilfs2/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index 1427de5ebf4d..af3ba0478cdf 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c | |||
@@ -996,7 +996,7 @@ static int nilfs_attach_snapshot(struct super_block *s, __u64 cno, | |||
996 | 996 | ||
997 | static int nilfs_tree_was_touched(struct dentry *root_dentry) | 997 | static int nilfs_tree_was_touched(struct dentry *root_dentry) |
998 | { | 998 | { |
999 | return root_dentry->d_count > 1; | 999 | return d_count(root_dentry) > 1; |
1000 | } | 1000 | } |
1001 | 1001 | ||
1002 | /** | 1002 | /** |