[Devel] [PATCH RH9 05/22] ms/fs: Revert "Make super_blocks and sb_lock static"

Andrey Zhadchenko andrey.zhadchenko at virtuozzo.com
Thu Oct 7 13:57:29 MSK 2021


From: Alexander Mikhalitsyn <alexander.mikhalitsyn at virtuozzo.com>

This reverts commit ms commit 15d0f5ea348b9c4e6d41df294dde38a56a39c7bf
("Make super_blocks and sb_lock static")

sb_lock will be used later for sync filtering feature implementation.

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

VZ 8 rebase part https://jira.sw.ru/browse/PSBM-127782
Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn at virtuozzo.com>

(cherry picked from vz8 commit 8c217d5fa97eeb1ad5fb9605de1e1da1673b9a9b)
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
---
 fs/super.c         | 4 ++--
 include/linux/fs.h | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/fs/super.c b/fs/super.c
index 9fbb8d6..5ea020b 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -45,8 +45,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 8d772f6..01419db 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1405,6 +1405,9 @@ struct fasync_struct {
 
 #define SB_I_SKIP_SYNC	0x00000100	/* Skip superblock at global sync */
 
+extern struct list_head super_blocks;
+extern spinlock_t sb_lock;
+
 /* Possible states of 'frozen' field */
 enum {
 	SB_UNFROZEN = 0,		/* FS is unfrozen */
-- 
1.8.3.1



More information about the Devel mailing list