mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
f2fs: fix to update upper_p in __get_secs_required() correctly
Commit1acd73edbb("f2fs: fix to account dirty data in __get_secs_required()") missed to calculate upper_p w/ data_secs, fix it. Fixes:1acd73edbb("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>
This commit is contained in:
parent
40aa9e1223
commit
6840faddb6
|
|
@ -678,7 +678,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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user