mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1023836d1b
commit
e33c22f2ee
@@ -616,7 +616,7 @@ static inline void __get_secs_required(struct f2fs_sb_info *sbi,
|
||||
if (lower_p)
|
||||
*lower_p = node_secs + dent_secs + data_secs;
|
||||
if (upper_p)
|
||||
*upper_p = node_secs + dent_secs +
|
||||
*upper_p = node_secs + dent_secs + data_secs +
|
||||
(node_blocks ? 1 : 0) + (dent_blocks ? 1 : 0) +
|
||||
(data_blocks ? 1 : 0);
|
||||
if (curseg_p)
|
||||
|
||||
Reference in New Issue
Block a user