Skip to content

Commit 6840fad

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: fix to update upper_p in __get_secs_required() correctly
Commit 1acd73e ("f2fs: fix to account dirty data in __get_secs_required()") missed to calculate upper_p w/ data_secs, fix it. Fixes: 1acd73e ("f2fs: fix to account dirty data in __get_secs_required()") Cc: Daeho Jeong <[email protected]> Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 40aa9e1 commit 6840fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/segment.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ static inline void __get_secs_required(struct f2fs_sb_info *sbi,
678678
if (lower_p)
679679
*lower_p = node_secs + dent_secs + data_secs;
680680
if (upper_p)
681-
*upper_p = node_secs + dent_secs +
681+
*upper_p = node_secs + dent_secs + data_secs +
682682
(node_blocks ? 1 : 0) + (dent_blocks ? 1 : 0) +
683683
(data_blocks ? 1 : 0);
684684
if (curseg_p)

0 commit comments

Comments
 (0)