]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ext2: code cleanup for ext2_preread_inode()
authorChengguang Xu <cgxu519@zoho.com.cn>
Tue, 28 May 2019 05:32:31 +0000 (13:32 +0800)
committerJan Kara <jack@suse.cz>
Tue, 28 May 2019 07:51:58 +0000 (09:51 +0200)
Calling bdi_rw_congested() instead of calling
bdi_read_congested() and bdi_write_congested().

Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/ialloc.c

index a0c5ea91fcd499d8676301eb578147dcd06a56f0..334dea4e499d63d1c96533ed242cc263151f9ad0 100644 (file)
@@ -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);