[Devel] [PATCH 03/13] Revert "Make super_blocks and sb_lock static"

Alexander Mikhalitsyn alexander.mikhalitsyn at virtuozzo.com
Wed Apr 14 10:44:48 MSK 2021


This reverts commit 15d0f5ea348b9c4e6d41df294dde38a56a39c7bf.

=============================================================================

VZ 8 rebase part https://jira.sw.ru/browse/PSBM-127782

Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn at virtuozzo.com>
---
 fs/super.c         | 4 ++--
 include/linux/fs.h | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/fs/super.c b/fs/super.c
index a7de90fc2d74..903d7a2c379e 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -41,8 +41,8 @@
 
 static int thaw_super_locked(struct super_block *sb);
 
-static LIST_HEAD(super_blocks);
-static DEFINE_SPINLOCK(sb_lock);
+LIST_HEAD(super_blocks);
+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 544d7fa3ca58..48fb585a3c18 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1363,6 +1363,8 @@ extern int send_sigurg(struct fown_struct *fown);
 #define SB_I_UNTRUSTED_MOUNTER		0x00000040
 
 #define SB_I_UMOUNT_SYNC		0x10000000 /* don't use delayed unmount */
+extern struct list_head super_blocks;
+extern spinlock_t sb_lock;
 
 /* Possible states of 'frozen' field */
 enum {
-- 
2.28.0



More information about the Devel mailing list