Skip to content

Commit a842a90

Browse files
Minjie DuJaegeuk Kim
authored andcommitted
f2fs: increase usage of folio_next_index() helper
Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using the existing helper folio_next_index(). Signed-off-by: Minjie Du <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 2bd4df8 commit a842a90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/f2fs/data.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3232,8 +3232,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping,
32323232
}
32333233
goto next;
32343234
}
3235-
done_index = folio->index +
3236-
folio_nr_pages(folio);
3235+
done_index = folio_next_index(folio);
32373236
done = 1;
32383237
break;
32393238
}

0 commit comments

Comments
 (0)