diff options
author | NeilBrown <neilb@suse.de> | 2014-08-08 17:19:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 18:57:19 -0400 |
commit | bdac38329e2e26c6b2a8bb9e57e18d1db2f1db92 (patch) | |
tree | 61a84289f86387f58109fbbf1e4e4e8f20698e47 | |
parent | 668128e90b9596668141539326178dacc42af188 (diff) |
autofs4: remove some unused inline functions
{__,}manage_dentry_{set,clear}_{automount,transit}
are 4 unused inline functions. Discard them.
Signed-off-by: NeilBrown <neilb@suse.de>
Acked-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/autofs4/autofs_i.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index 22a280151e45..9e359fb20c0a 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h | |||
@@ -177,55 +177,6 @@ extern const struct file_operations autofs4_root_operations; | |||
177 | extern const struct dentry_operations autofs4_dentry_operations; | 177 | extern const struct dentry_operations autofs4_dentry_operations; |
178 | 178 | ||
179 | /* VFS automount flags management functions */ | 179 | /* VFS automount flags management functions */ |
180 | |||
181 | static inline void __managed_dentry_set_automount(struct dentry *dentry) | ||
182 | { | ||
183 | dentry->d_flags |= DCACHE_NEED_AUTOMOUNT; | ||
184 | } | ||
185 | |||
186 | static inline void managed_dentry_set_automount(struct dentry *dentry) | ||
187 | { | ||
188 | spin_lock(&dentry->d_lock); | ||
189 | __managed_dentry_set_automount(dentry); | ||
190 | spin_unlock(&dentry->d_lock); | ||
191 | } | ||
192 | |||
193 | static inline void __managed_dentry_clear_automount(struct dentry *dentry) | ||
194 | { | ||
195 | dentry->d_flags &= ~DCACHE_NEED_AUTOMOUNT; | ||
196 | } | ||
197 | |||
198 | static inline void managed_dentry_clear_automount(struct dentry *dentry) | ||
199 | { | ||
200 | spin_lock(&dentry->d_lock); | ||
201 | __managed_dentry_clear_automount(dentry); | ||
202 | spin_unlock(&dentry->d_lock); | ||
203 | } | ||
204 | |||
205 | static inline void __managed_dentry_set_transit(struct dentry *dentry) | ||
206 | { | ||
207 | dentry->d_flags |= DCACHE_MANAGE_TRANSIT; | ||
208 | } | ||
209 | |||
210 | static inline void managed_dentry_set_transit(struct dentry *dentry) | ||
211 | { | ||
212 | spin_lock(&dentry->d_lock); | ||
213 | __managed_dentry_set_transit(dentry); | ||
214 | spin_unlock(&dentry->d_lock); | ||
215 | } | ||
216 | |||
217 | static inline void __managed_dentry_clear_transit(struct dentry *dentry) | ||
218 | { | ||
219 | dentry->d_flags &= ~DCACHE_MANAGE_TRANSIT; | ||
220 | } | ||
221 | |||
222 | static inline void managed_dentry_clear_transit(struct dentry *dentry) | ||
223 | { | ||
224 | spin_lock(&dentry->d_lock); | ||
225 | __managed_dentry_clear_transit(dentry); | ||
226 | spin_unlock(&dentry->d_lock); | ||
227 | } | ||
228 | |||
229 | static inline void __managed_dentry_set_managed(struct dentry *dentry) | 180 | static inline void __managed_dentry_set_managed(struct dentry *dentry) |
230 | { | 181 | { |
231 | dentry->d_flags |= (DCACHE_NEED_AUTOMOUNT|DCACHE_MANAGE_TRANSIT); | 182 | dentry->d_flags |= (DCACHE_NEED_AUTOMOUNT|DCACHE_MANAGE_TRANSIT); |