Commit 7f58351a authored by Chengguang Xu's avatar Chengguang Xu Committed by Jan Kara

ext2: code cleanup for ext2_preread_inode()

Calling bdi_rw_congested() instead of calling
bdi_read_congested() and bdi_write_congested().
Signed-off-by: default avatarChengguang Xu <cgxu519@zoho.com.cn>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 38fa0e8e
...@@ -172,9 +172,7 @@ static void ext2_preread_inode(struct inode *inode) ...@@ -172,9 +172,7 @@ static void ext2_preread_inode(struct inode *inode)
struct backing_dev_info *bdi; struct backing_dev_info *bdi;
bdi = inode_to_bdi(inode); bdi = inode_to_bdi(inode);
if (bdi_read_congested(bdi)) if (bdi_rw_congested(bdi))
return;
if (bdi_write_congested(bdi))
return; return;
block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb);
......
Markdown is supported
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