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/efivarfs | |
| 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/efivarfs')
| -rw-r--r-- | fs/efivarfs/super.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/efivarfs/super.c b/fs/efivarfs/super.c index a8766b880c07..becc725a1953 100644 --- a/fs/efivarfs/super.c +++ b/fs/efivarfs/super.c | |||
| @@ -83,19 +83,10 @@ static int efivarfs_d_hash(const struct dentry *dentry, struct qstr *qstr) | |||
| 83 | return 0; | 83 | return 0; |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | /* | ||
| 87 | * Retaining negative dentries for an in-memory filesystem just wastes | ||
| 88 | * memory and lookup time: arrange for them to be deleted immediately. | ||
| 89 | */ | ||
| 90 | static int efivarfs_delete_dentry(const struct dentry *dentry) | ||
| 91 | { | ||
| 92 | return 1; | ||
| 93 | } | ||
| 94 | |||
| 95 | static struct dentry_operations efivarfs_d_ops = { | 86 | static struct dentry_operations efivarfs_d_ops = { |
| 96 | .d_compare = efivarfs_d_compare, | 87 | .d_compare = efivarfs_d_compare, |
| 97 | .d_hash = efivarfs_d_hash, | 88 | .d_hash = efivarfs_d_hash, |
| 98 | .d_delete = efivarfs_delete_dentry, | 89 | .d_delete = always_delete_dentry, |
| 99 | }; | 90 | }; |
| 100 | 91 | ||
| 101 | static struct dentry *efivarfs_alloc_dentry(struct dentry *parent, char *name) | 92 | static struct dentry *efivarfs_alloc_dentry(struct dentry *parent, char *name) |
