AnsweredAssumed Answered

EXT4-fs error (device mmcblk2p2): ext4_mb_generate_buddy:757

Question asked by 魏伟 魏 on Sep 5, 2019
Latest reply on Sep 6, 2019 by igorpadykov

I use imx8m mini evk,Linux version 4.14.78-imx_4.14.78_1.0.0_ga+g94da7bdc489b. i use  insmod g_mass_storage.ko, make the imx8mm insert into PC as a usb disk.When i open linux file systems for windows(a software run in windows) , i can read and write the imx8mm files system  alike i use a usb disk.But imx8mm often print this error:

EXT4-fs error (device mmcblk2p2): ext4_mb_generate_buddy:757: group 6, block bitmap and bg des.

Some time it also print when i read or wite the imx8mm file system in the PC:
[ 1382.882751] EXT4-fs (mmcblk2p2): Total free blocks count 0
[ 1382.883443] EXT4-fs (mmcblk2p2): Free/Dirty block details
[ 1382.884259] EXT4-fs (mmcblk2p2): free_blocks=1040938
[ 1382.884889] EXT4-fs (mmcblk2p2): dirty_blocks=12951
[ 1382.885504] EXT4-fs (mmcblk2p2): Block reservation details
[ 1382.886199] EXT4-fs (mmcblk2p2): i_reserved_data_blocks=12950
[ 1392.898544] EXT4-fs (mmcblk2p2): Delayed block allocation failed for inode 807 at logical offset 0 with max blocks 161 with error 28
[ 1392.900069] EXT4-fs (mmcblk2p2): This should not happen!! Data will be lost

[    0.522976] EXT4-fs error (device mmcblk2p2): ext4_mb_generate_buddy:757: group 13, block bitmap and bg descriptor inconsistent: 0 vs 65535 free clusters
[    0.525035] EXT4-fs error (device mmcblk2p2): ext4_mb_generate_buddy:757: group 14, block bitmap and bg descriptor inconsistent: 1 vs 0 free clusters

Then the imx8mm system will collapse .Can you help me?

Outcomes