diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-25 18:47:37 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-11-15 22:04:17 -0500 |
commit | b26d4cd385fc51e8844e2cdf9ba2051f5bba11a5 (patch) | |
tree | fcfa7a889b494945abf5705562c0384f88924f78 /fs/configfs | |
parent | 951b4bd553e35a291e6b5732ab0124619e81da05 (diff) |
consolidate simple ->d_delete() instances
Rename simple_delete_dentry() to always_delete_dentry() and export it.
Export simple_dentry_operations, while we are at it, and get rid of
their duplicates
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/configfs')
-rw-r--r-- | fs/configfs/dir.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c index 277bd1be21fd..4522e0755773 100644 --- a/fs/configfs/dir.c +++ b/fs/configfs/dir.c | |||
@@ -66,19 +66,9 @@ static void configfs_d_iput(struct dentry * dentry, | |||
66 | iput(inode); | 66 | iput(inode); |
67 | } | 67 | } |
68 | 68 | ||
69 | /* | ||
70 | * We _must_ delete our dentries on last dput, as the chain-to-parent | ||
71 | * behavior is required to clear the parents of default_groups. | ||
72 | */ | ||
73 | static int configfs_d_delete(const struct dentry *dentry) | ||
74 | { | ||
75 | return 1; | ||
76 | } | ||
77 | |||
78 | const struct dentry_operations configfs_dentry_ops = { | 69 | const struct dentry_operations configfs_dentry_ops = { |
79 | .d_iput = configfs_d_iput, | 70 | .d_iput = configfs_d_iput, |
80 | /* simple_delete_dentry() isn't exported */ | 71 | .d_delete = always_delete_dentry, |
81 | .d_delete = configfs_d_delete, | ||
82 | }; | 72 | }; |
83 | 73 | ||
84 | #ifdef CONFIG_LOCKDEP | 74 | #ifdef CONFIG_LOCKDEP |