autofs: make autofs_expire_direct() static
authorIan Kent <raven@themaw.net>
Wed, 22 Aug 2018 04:58:51 +0000 (21:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Aug 2018 17:52:49 +0000 (10:52 -0700)
autofs_expire_direct() isn't used outside of fs/autofs/expire.c so make it
static.

Link: http://lkml.kernel.org/r/152937732944.21213.11821977712410930973.stgit@pluto.themaw.net
Signed-off-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/autofs/autofs_i.h
fs/autofs/expire.c

index 5057b9f0f8461029ae9afb4d321a7e64d0f91da4..fe1b62cfc76953777c7c6fa311d210a5f8f576a1 100644 (file)
@@ -156,9 +156,6 @@ int autofs_do_expire_multi(struct super_block *sb, struct vfsmount *mnt,
                           struct autofs_sb_info *sbi, int when);
 int autofs_expire_multi(struct super_block *, struct vfsmount *,
                        struct autofs_sb_info *, int __user *);
-struct dentry *autofs_expire_direct(struct super_block *sb,
-                                   struct vfsmount *mnt,
-                                   struct autofs_sb_info *sbi, int how);
 struct dentry *autofs_expire_indirect(struct super_block *sb,
                                      struct vfsmount *mnt,
                                      struct autofs_sb_info *sbi, int how);
index 41855cdc56308e9ad7ef7573fd196e9f8bb2ae72..64e6eba2c62816b4cb22a19fb4aa536561b25b53 100644 (file)
@@ -292,10 +292,10 @@ static struct dentry *autofs_check_leaves(struct vfsmount *mnt,
 }
 
 /* Check if we can expire a direct mount (possibly a tree) */
-struct dentry *autofs_expire_direct(struct super_block *sb,
-                                   struct vfsmount *mnt,
-                                   struct autofs_sb_info *sbi,
-                                   int how)
+static struct dentry *autofs_expire_direct(struct super_block *sb,
+                                          struct vfsmount *mnt,
+                                          struct autofs_sb_info *sbi,
+                                          int how)
 {
        unsigned long timeout;
        struct dentry *root = dget(sb->s_root);