拔出TF卡,打印bdi-block not registered

拔出tf卡,警告打印信息:

mmc0: card 1234 removed

------------[ cut here ]------------

WARNING: CPU: 0 PID: 1104 at fs/fs-writeback.c:1197 __mark_inode_dirty+0x194/0x198()

bdi-block not registered

Modules linked in:

CPU: 0 PID: 1104 Comm: umount Tainted: G W 3.14.26-g3eda1dc-dirty #46

Backtrace:

[<c001190c>] (dump_backtrace) from [<c0011b20>] (show_stack+0x18/0x1c)

r6:000004ad r5:00000009 r4:dd671e10 r3:00000000

[<c0011b08>] (show_stack) from [<c05d9d6c>] (dump_stack+0x24/0x28)

[<c05d9d48>] (dump_stack) from [<c003604c>] (warn_slowpath_common+0x74/0x8c)

[<c0035fd8>] (warn_slowpath_common) from [<c003609c>] (warn_slowpath_fmt+0x38/0x40)

r8:dd403300 r7:dd403300 r6:a00f0013 r5:dc99c5f8 r4:c0747f1c

[<c0036068>] (warn_slowpath_fmt) from [<c00f0ea4>] (__mark_inode_dirty+0x194/0x198)

r3:c0751968 r2:c0747f1c

r4:dd4f38a8

[<c00f0d10>] (__mark_inode_dirty) from [<c00f68d0>] (__set_page_dirty+0x74/0xa8)

r5:dc99c6bc r4:ddf7bde0

[<c00f685c>] (__set_page_dirty) from [<c00f779c>] (mark_buffer_dirty+0x94/0xd0)

r7:dd403300 r6:dd514e00 r5:ddf7bde0 r4:00000000

[<c00f7708>] (mark_buffer_dirty) from [<c013f954>] (ext3_put_super+0x1e8/0x218)

r5:dd3f0cc0 r4:dbdef400

[<c013f76c>] (ext3_put_super) from [<c00cf890>] (generic_shutdown_super+0x78/0xcc)

r7:dd403300 r6:c05f1628 r5:dd514e5c r4:dd514e00

[<c00cf818>] (generic_shutdown_super) from [<c00cfb68>] (kill_block_super+0x20/0x70)

r6:dd403348 r5:00000083 r4:dc99c580 r3:c00cfb48

[<c00cfb48>] (kill_block_super) from [<c00cfde0>] (deactivate_locked_super+0x48/0x80)

r6:dd403348 r5:c084b338 r4:dd514e00 r3:c00cfb48

[<c00cfd98>] (deactivate_locked_super) from [<c00d017c>] (deactivate_super+0x60/0x68)

r5:c0898904 r4:dd514e00

[<c00d011c>] (deactivate_super) from [<c00e8b54>] (mntput_no_expire+0xc4/0x194)

r4:dd403300 r3:00000001

[<c00e8a90>] (mntput_no_expire) from [<c00ea020>] (SyS_umount+0x98/0x3c8)

r8:dd403300 r7:dd403300 r6:dd403348 r5:00000000 r4:dd40332c r3:00000002

[<c00e9f88>] (SyS_umount) from [<c000e720>] (ret_fast_syscall+0x0/0x30)

r10:00000000 r9:dd670000 r8:c000e8a4 r7:00000034 r6:00000002 r5:00081378

r4:00081378

---[ end trace b9bce5b7999fbc68 ]---

EXT3-fs (mmcblk1p2): I/O error while writing superblock

 

fs/fs-writeback.c

void __mark_inode_dirty(struct inode *inode, int flags)

{

#if 0

if (bdi_cap_writeback_dirty(bdi)){

WARN(!test_bit(BDI_registered, &bdi->state),

"bdi-%s not registered\n", bdi->name);

#else

if (bdi_cap_writeback_dirty(bdi) &&!test_bit(BDI_registered, &bdi->state)) {

pr_warn_ratelimited("");

#endif

}

改成如上,就可以消除警告的打印信息

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值