autofs4: remove unused autofs4_ispending()
authorNeilBrown <neilb@suse.de>
Fri, 8 Aug 2014 21:19:50 +0000 (14:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:18 +0000 (15:57 -0700)
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>
fs/autofs4/autofs_i.h

index acf32054edd87a6f7360cfc17b2a1f5ddd6ee85f..22a280151e453d76f43c493e4f958d6720acd752 100644 (file)
@@ -143,20 +143,6 @@ static inline int autofs4_oz_mode(struct autofs_sb_info *sbi) {
        return sbi->catatonic || task_pgrp(current) == sbi->oz_pgrp;
 }
 
-/* Does a dentry have some pending activity? */
-static inline int autofs4_ispending(struct dentry *dentry)
-{
-       struct autofs_info *inf = autofs4_dentry_ino(dentry);
-
-       if (inf->flags & AUTOFS_INF_PENDING)
-               return 1;
-
-       if (inf->flags & AUTOFS_INF_EXPIRING)
-               return 1;
-
-       return 0;
-}
-
 struct inode *autofs4_get_inode(struct super_block *, umode_t);
 void autofs4_free_ino(struct autofs_info *);