diff options
| author | Julia Lawall <Julia.Lawall@inria.fr> | 2026-02-22 13:50:49 +0100 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2026-04-09 10:40:31 -0400 |
| commit | a804ecc399d91a529726fa1b10ff699bb531253d (patch) | |
| tree | 376f1fe4bfb094ea6689047faf6d839ba9c2437c /tools/perf/scripts/python/bin | |
| parent | 2f17d1993b01960579761284e9a0da533a7a82fa (diff) | |
ext4/move_extent: use folio_next_pos()
A series of patches such as commit 60a70e61430b ("mm: Use
folio_next_pos()") replace folio_pos() + folio_size() by
folio_next_pos(). The former performs x << z + y << z while
the latter performs (x + y) << z, which is slightly more
efficient. This case was not taken into account, perhaps
because the argument is not named folio.
The change was performed using the following Coccinelle
semantic patch:
@@
expression folio;
@@
- folio_pos(folio) + folio_size(folio)
+ folio_next_pos(folio)
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20260222125049.1309075-1-Julia.Lawall@inria.fr
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
