diff options
author | Khazhismel Kumykov <khazhy@google.com> | 2019-04-25 12:58:01 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-04-25 12:58:01 -0400 |
commit | 4b99faa23c51ca31312b9afb876e8e5878daeb80 (patch) | |
tree | 962f554d6556f2a6e5391a31783124d00b01c84c /fs/ext4/block_validity.c | |
parent | 7bc04c5c2cc467c5b40f2b03ba08da174a0d5fa7 (diff) | |
download | linux-4b99faa23c51ca31312b9afb876e8e5878daeb80.tar.gz linux-4b99faa23c51ca31312b9afb876e8e5878daeb80.tar.bz2 linux-4b99faa23c51ca31312b9afb876e8e5878daeb80.zip |
ext4: cond_resched in work-heavy group loops
Signed-off-by: Khazhismel Kumykov <khazhy@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Diffstat (limited to 'fs/ext4/block_validity.c')
-rw-r--r-- | fs/ext4/block_validity.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/block_validity.c b/fs/ext4/block_validity.c index 9409b1e11a22..968f163b5feb 100644 --- a/fs/ext4/block_validity.c +++ b/fs/ext4/block_validity.c @@ -197,6 +197,7 @@ int ext4_setup_system_zone(struct super_block *sb) return 0; for (i=0; i < ngroups; i++) { + cond_resched(); if (ext4_bg_has_super(sb, i) && ((i < 5) || ((i % flex_size) == 0))) add_system_zone(sbi, ext4_group_first_block_no(sb, i), |