]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: fix to update upper_p in __get_secs_required() correctly
authorChao Yu <chao@kernel.org>
Thu, 24 Jul 2025 08:01:42 +0000 (16:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:08:59 +0000 (12:08 +0200)
commite33c22f2eebacbd57bb2c1b770dcf62584188fd0
treeb08a888c8e89c12f7dea8f67383173c449a778dd
parent1023836d1b9465593c8746f97d608da32958785f
f2fs: fix to update upper_p in __get_secs_required() correctly

[ Upstream commit 6840faddb65683b4e7bd8196f177b038a1e19faf ]

Commit 1acd73edbbfe ("f2fs: fix to account dirty data in __get_secs_required()")
missed to calculate upper_p w/ data_secs, fix it.

Fixes: 1acd73edbbfe ("f2fs: fix to account dirty data in __get_secs_required()")
Cc: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/segment.h