diff mbox series

[3/4] UBUNTU: SAUCE: Export ext4_superblock_csum function

Message ID 20230125000602.1166517-4-khalid.elmously@canonical.com
State New
Headers show
Series [1/4] ext4: fix bad checksum after online resize | expand

Commit Message

Khalid Elmously Jan. 25, 2023, 12:06 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2003816

This is partial backport of bbc605cdb1e15aafaec899fedc385dc75dddac0e

Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
---
 fs/ext4/ext4.h  | 2 ++
 fs/ext4/super.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 2d84030d7b7fc..7172e2c1ccba4 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -3106,6 +3106,8 @@  extern int ext4_read_bh_lock(struct buffer_head *bh, int op_flags, bool wait);
 extern void ext4_sb_breadahead_unmovable(struct super_block *sb, sector_t block);
 extern int ext4_seq_options_show(struct seq_file *seq, void *offset);
 extern int ext4_calculate_overhead(struct super_block *sb);
+extern __le32 ext4_superblock_csum(struct super_block *sb,
+				struct ext4_super_block *es);
 extern void ext4_superblock_csum_set(struct super_block *sb);
 extern int ext4_alloc_flex_bg_array(struct super_block *sb,
 				    ext4_group_t ngroup);
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 985d79fb61287..9173240a94df0 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -253,7 +253,7 @@  static int ext4_verify_csum_type(struct super_block *sb,
 	return es->s_checksum_type == EXT4_CRC32C_CHKSUM;
 }
 
-static __le32 ext4_superblock_csum(struct super_block *sb,
+__le32 ext4_superblock_csum(struct super_block *sb,
 				   struct ext4_super_block *es)
 {
 	struct ext4_sb_info *sbi = EXT4_SB(sb);