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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -172,9 +172,7 @@ static void ext2_preread_inode(struct inode *inode)
	struct backing_dev_info *bdi;

	bdi = inode_to_bdi(inode);
	if (bdi_read_congested(bdi))
		return;
	if (bdi_write_congested(bdi))
	if (bdi_rw_congested(bdi))
		return;

	block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb);