From: Shiyong Li Date: Sat, 9 Dec 2017 01:29:00 +0000 (-0800) Subject: fs/exfat: link superblock for all the buffer head X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe89f9752049cde2503e71a7cda8ac854f902af6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git fs/exfat: link superblock for all the buffer head Otherwise, we can get kernel panic when handling fs_error(). Change-Id: I288ece9bdc0182b0d4cf23f1bba920d341a8f540 Signed-off-by: Jaegeuk Kim Signed-off-by: Shiyong Li Reviewed-on: https://gerrit.mot.com/1102177 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Igor Kovalenko Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1276878 Reviewed-by: Hua Tan --- diff --git a/fs/exfat/exfat_super.c b/fs/exfat/exfat_super.c index 7961d1fe612b..c2f636baffb8 100644 --- a/fs/exfat/exfat_super.c +++ b/fs/exfat/exfat_super.c @@ -1593,6 +1593,7 @@ static int exfat_get_block(struct inode *inode, sector_t iblock, map_bh(bh_result, sb, phys); } + bh_result->b_private = sb; bh_result->b_size = max_blocks << sb->s_blocksize_bits; __unlock_super(sb);