[Devel] [PATCH RHEL8 COMMIT] ms/fs: Revert "Make super_blocks and sb_lock static"

Konstantin Khorenko khorenko at virtuozzo.com
Thu Apr 15 15:37:41 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.14
------>
commit ad97136b0661d108bedbf0ae82dc460a5331f5c3
Author: Alexander Mikhalitsyn <alexander.mikhalitsyn at virtuozzo.com>
Date:   Thu Apr 15 15:37:41 2021 +0300

    ms/fs: Revert "Make super_blocks and sb_lock static"
    
    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>
---
 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 {


More information about the Devel mailing list