fs/exfat: link superblock for all the buffer head
authorShiyong Li <a22381@motorola.com>
Sat, 9 Dec 2017 01:29:00 +0000 (17:29 -0800)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:51 +0000 (20:23 +0300)
Otherwise, we can get kernel panic when handling fs_error().

Change-Id: I288ece9bdc0182b0d4cf23f1bba920d341a8f540
Signed-off-by: Jaegeuk Kim <jaegeuk@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102177
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276878
Reviewed-by: Hua Tan <tanhua1@motorola.com>
fs/exfat/exfat_super.c

index 7961d1fe612be4e05db5d1b5ccf341b4d5079b21..c2f636baffb8f8521cab26d430e37d4e0590f6e7 100644 (file)
@@ -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);