diff options
author | Chengguang Xu <cgxu519@zoho.com.cn> | 2019-05-28 13:32:31 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-05-28 09:51:58 +0200 |
commit | 7f58351a7c57d2a7f15c89683b7a1d2d4fb38066 (patch) | |
tree | 9588cc6c2be9ca807abdad097525bba2d1d17df4 /fs | |
parent | 38fa0e8e4a3b932791443db033ca7c4ed1bace0e (diff) | |
download | linux-7f58351a7c57d2a7f15c89683b7a1d2d4fb38066.tar.gz linux-7f58351a7c57d2a7f15c89683b7a1d2d4fb38066.tar.bz2 linux-7f58351a7c57d2a7f15c89683b7a1d2d4fb38066.zip |
ext2: code cleanup for ext2_preread_inode()
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext2/ialloc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index a0c5ea91fcd4..334dea4e499d 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c @@ -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); |