aboutsummaryrefslogtreecommitdiffstats
path: root/fs/autofs4/autofs_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/autofs4/autofs_i.h')
-rw-r--r--fs/autofs4/autofs_i.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h
index 3d283abf67d7..3912dcf047e5 100644
--- a/fs/autofs4/autofs_i.h
+++ b/fs/autofs4/autofs_i.h
@@ -254,19 +254,6 @@ static inline int simple_positive(struct dentry *dentry)
254 return dentry->d_inode && !d_unhashed(dentry); 254 return dentry->d_inode && !d_unhashed(dentry);
255} 255}
256 256
257static inline int __simple_empty(struct dentry *dentry)
258{
259 struct dentry *child;
260 int ret = 0;
261
262 list_for_each_entry(child, &dentry->d_subdirs, d_u.d_child)
263 if (simple_positive(child))
264 goto out;
265 ret = 1;
266out:
267 return ret;
268}
269
270static inline void autofs4_add_expiring(struct dentry *dentry) 257static inline void autofs4_add_expiring(struct dentry *dentry)
271{ 258{
272 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); 259 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb);