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)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:25 +0000 (17:30 +0800)
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);