Skip to content
Snippets Groups Projects
Commit 9b69878e authored by zhangyi (F)'s avatar zhangyi (F) Committed by Yang Yingliang
Browse files

ext4: introduce ext4_sb_breadahead_unmovable() to replace sb_breadahead_unmovable()


mainline inclusion
from mainline-5.10-rc1
commit 5df1d412
category: bugfix
bugzilla: 51832
CVE: NA
---------------------------

If we readahead inode tables in __ext4_get_inode_loc(), it may bypass
buffer_write_io_error() check, so introduce ext4_sb_breadahead_unmovable()
to handle this special case.

This patch also replace sb_breadahead_unmovable() in ext4_fill_super()
for the sake of unification.

Signed-off-by: default avatarzhangyi (F) <yi.zhang@huawei.com>
Link: https://lore.kernel.org/r/20200924073337.861472-6-yi.zhang@huawei.com


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Signed-off-by: default avataryangerkun <yangerkun@huawei.com>
Reviewed-by: default avatarzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 828c350e
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment