Skip to content

Commit 4dd466d

Browse files
Miao XieChris Mason
authored andcommitted
Btrfs: don't run delayed nodes again after all nodes flush
If the number of the delayed items is greater than the upper limit, we will try to flush all the delayed items. After that, it is unnecessary to run them again because they are being dealt with by the wokers or the number of them is less than the lower limit. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>
1 parent 74c40f9 commit 4dd466d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/btrfs/delayed-inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,7 @@ void btrfs_balance_delayed_items(struct btrfs_root *root)
13951395
break;
13961396
}
13971397
finish_wait(&delayed_root->wait, &__wait);
1398+
return;
13981399
}
13991400

14001401
btrfs_wq_run_delayed_node(delayed_root, root, BTRFS_DELAYED_BATCH);

0 commit comments

Comments
 (0)