Skip to content

Commit 15d0f5e

Browse files
Al Viroaxboe
authored andcommitted
Make super_blocks and sb_lock static
The only user outside of fs/super.c is gone now Signed-off-by: Al Viro <[email protected]> Acked-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 706a4e5 commit 15d0f5e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

fs/super.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
#include "internal.h"
3737

3838

39-
LIST_HEAD(super_blocks);
40-
DEFINE_SPINLOCK(sb_lock);
39+
static LIST_HEAD(super_blocks);
40+
static DEFINE_SPINLOCK(sb_lock);
4141

4242
static char *sb_writers_name[SB_FREEZE_LEVELS] = {
4343
"sb_writers",

include/linux/fs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,8 +1183,6 @@ struct mm_struct;
11831183
#define UMOUNT_NOFOLLOW 0x00000008 /* Don't follow symlink on umount */
11841184
#define UMOUNT_UNUSED 0x80000000 /* Flag guaranteed to be unused */
11851185

1186-
extern struct list_head super_blocks;
1187-
extern spinlock_t sb_lock;
11881186

11891187
/* Possible states of 'frozen' field */
11901188
enum {

0 commit comments

Comments
 (0)