autofs: make autofs_expire_indirect() static
authorIan Kent <[email protected]>
Wed, 22 Aug 2018 04:58:54 +0000 (21:58 -0700)
committerLinus Torvalds <[email protected]>
Wed, 22 Aug 2018 17:52:49 +0000 (10:52 -0700)
autofs_expire_indirect() isn't used outside of fs/autofs/expire.c so make
it static.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ian Kent <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/autofs/autofs_i.h
fs/autofs/expire.c

index fe1b62cfc76953777c7c6fa311d210a5f8f576a1..f53ca4bd536590c4f3392f04c3452bced5a68454 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_indirect(struct super_block *sb,
-                                     struct vfsmount *mnt,
-                                     struct autofs_sb_info *sbi, int how);
 
 /* Device node initialization */
 
index 64e6eba2c62816b4cb22a19fb4aa536561b25b53..5fb47a4ca48c9ca5ff65e72b88730295c28edb58 100644 (file)
@@ -424,10 +424,10 @@ static struct dentry *should_expire(struct dentry *dentry,
  *  - it is unused by any user process
  *  - it has been unused for exp_timeout time
  */
-struct dentry *autofs_expire_indirect(struct super_block *sb,
-                                     struct vfsmount *mnt,
-                                     struct autofs_sb_info *sbi,
-                                     int how)
+static struct dentry *autofs_expire_indirect(struct super_block *sb,
+                                            struct vfsmount *mnt,
+                                            struct autofs_sb_info *sbi,
+                                            int how)
 {
        unsigned long timeout;
        struct dentry *root = sb->s_root;