summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@ZenIV.linux.org.uk>2015-02-02 18:07:59 +0100
committerJens Axboe <axboe@fb.com>2015-02-02 18:07:59 +0100
commit15d0f5ea348b9c4e6d41df294dde38a56a39c7bf (patch)
tree7a34ec11676096b88811843e03464ba7a4de2179
parentmtd: export new mtd_mmap_capabilities (diff)
downloadlinux-15d0f5ea348b9c4e6d41df294dde38a56a39c7bf.tar.xz
linux-15d0f5ea348b9c4e6d41df294dde38a56a39c7bf.zip
Make super_blocks and sb_lock static
The only user outside of fs/super.c is gone now Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--fs/super.c4
-rw-r--r--include/linux/fs.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/fs/super.c b/fs/super.c
index 3b4dadafdd60..05a021638b11 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -36,8 +36,8 @@
#include "internal.h"
-LIST_HEAD(super_blocks);
-DEFINE_SPINLOCK(sb_lock);
+static LIST_HEAD(super_blocks);
+static DEFINE_SPINLOCK(sb_lock);
static char *sb_writers_name[SB_FREEZE_LEVELS] = {
"sb_writers",
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 65d02de342e1..2f717baefdf8 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1183,8 +1183,6 @@ struct mm_struct;
#define UMOUNT_NOFOLLOW 0x00000008 /* Don't follow symlink on umount */
#define UMOUNT_UNUSED 0x80000000 /* Flag guaranteed to be unused */
-extern struct list_head super_blocks;
-extern spinlock_t sb_lock;
/* Possible states of 'frozen' field */
enum {