diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-09-02 15:19:54 +0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-09-06 12:55:29 -0700 |
commit | a8d436f015b627a55ec3b1d15f13d6ab92dd892b (patch) | |
tree | 5965cb9c6a65598b8f2114bc75974b4c3198cde0 /fs/ceph/caps.c | |
parent | ed284c49f61165c3ba1b4e6969d1cc30a769c31b (diff) | |
download | linux-a8d436f015b627a55ec3b1d15f13d6ab92dd892b.tar.bz2 |
ceph: use d_invalidate() to invalidate aliases
d_invalidate() is the standard VFS method to invalidate dentry.
compare to d_delete(), it also try shrinking children dentries.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r-- | fs/ceph/caps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 7b451eb7d123..13976c33332e 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -2346,10 +2346,10 @@ static void invalidate_aliases(struct inode *inode) d_prune_aliases(inode); /* * For non-directory inode, d_find_alias() only returns - * connected dentry. After calling d_delete(), the dentry - * become disconnected. + * connected dentry. After calling d_invalidate(), the + * dentry become disconnected. * - * For directory inode, d_find_alias() only can return + * For directory inode, d_find_alias() can return * disconnected dentry. But directory inode should have * one alias at most. */ @@ -2358,7 +2358,7 @@ static void invalidate_aliases(struct inode *inode) dput(dn); break; } - d_delete(dn); + d_invalidate(dn); if (prev) dput(prev); prev = dn; |