From f45a13db5449165811beca6ffa2c957bf3533d64 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:31 +0100 Subject: [PATCH] Revert "fs: explicitly unregister per-superblock BDIs" This reverts commit 716f0f8e49f23669afd7983dcc025b5f5bc25356. --- fs/super.c | 3 --- include/linux/fs.h | 1 - 2 files changed, 4 deletions(-) diff --git a/fs/super.c b/fs/super.c index e7b9e3003..b12b2a727 100755 --- a/fs/super.c +++ b/fs/super.c @@ -479,8 +479,6 @@ void generic_shutdown_super(struct super_block *sb) spin_unlock(&sb_lock); up_write(&sb->s_umount); if (sb->s_bdi != &noop_backing_dev_info) { - if (sb->s_iflags & SB_I_PERSB_BDI) - bdi_unregister(sb->s_bdi); bdi_put(sb->s_bdi); sb->s_bdi = &noop_backing_dev_info; } @@ -1645,7 +1643,6 @@ int super_setup_bdi_name(struct super_block *sb, char *fmt, ...) } WARN_ON(sb->s_bdi != &noop_backing_dev_info); sb->s_bdi = bdi; - sb->s_iflags |= SB_I_PERSB_BDI; return 0; } diff --git a/include/linux/fs.h b/include/linux/fs.h index 4a4884ca6..68c471301 100755 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1444,7 +1444,6 @@ extern int send_sigurg(struct fown_struct *fown); #define SB_I_UNTRUSTED_MOUNTER 0x00000040 #define SB_I_SKIP_SYNC 0x00000100 /* Skip superblock at global sync */ -#define SB_I_PERSB_BDI 0x00000200 /* has a per-sb bdi */ /* Possible states of 'frozen' field */ enum {