Make super_blocks and sb_lock static
authorAl Viro <viro@ZenIV.linux.org.uk>
Mon, 2 Feb 2015 17:07:59 +0000 (10:07 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 2 Feb 2015 17:07:59 +0000 (10:07 -0700)
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>
fs/super.c
include/linux/fs.h

index 3b4dadafdd6055be4d84feeaa381cc6dcd1fcb0b..05a021638b11b4ca9d230eaa946cd43e7dabfd2a 100644 (file)
@@ -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",
index 65d02de342e129a401ca92283ac74685e616387c..2f717baefdf82169a975fe802a5ccaa7957dd6ea 100644 (file)
@@ -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 {