Skip to content
Unverified Commit 639924ab authored by Kemeng Shi's avatar Kemeng Shi Committed by Christian Brauner
Browse files

fs/writeback: only calculate dirtied_before when b_io is empty



The dirtied_before is only used when b_io is not empty, so only calculate
when b_io is not empty.

Signed-off-by: default avatarKemeng Shi <shikemeng@huaweicloud.com>
Link: https://lore.kernel.org/r/20240228091958.288260-5-shikemeng@huaweicloud.com


Reviewed-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 2ddc9346
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment