summaryrefslogtreecommitdiffstats
path: root/fs/autofs/expire.c
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2018-08-22 06:58:51 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-22 19:52:49 +0200
commit5d30517d67e349164838ad039f0f2d09dde15f59 (patch)
treef4d96d6649a4de25efc3ba56978a7447668ede45 /fs/autofs/expire.c
parentautofs: fix clearing AUTOFS_EXP_LEAVES in autofs_expire_indirect() (diff)
downloadlinux-5d30517d67e349164838ad039f0f2d09dde15f59.tar.xz
linux-5d30517d67e349164838ad039f0f2d09dde15f59.zip
autofs: make autofs_expire_direct() static
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>
Diffstat (limited to '')
-rw-r--r--fs/autofs/expire.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/autofs/expire.c b/fs/autofs/expire.c
index 41855cdc5630..64e6eba2c628 100644
--- a/fs/autofs/expire.c
+++ b/fs/autofs/expire.c
@@ -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);