Skip to contentSkip to conversation

f2fs: increase usage of folio_next_index() helper

PATCH Applied Minjie Du 3 participants 3 messages Jul 17, 2023 – Aug 14, 2023 F2FS file system

lore
Share & tools
lore

Minjie Du

author
#0 lore raw

PATCH 1/1 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().

---
 fs/f2fs/data.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/f2fs/data.c +1 -2
index 5882afe71..298024b07 100644
@@ -3236,8 +3236,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping,
 					}
 					goto next;
 				}
-				done_index = folio->index +
-					folio_nr_pages(folio);
+				done_index = folio_next_index(folio);
 				done = 1;
 				break;
 			}
Signature · 1 line
2.39.0
#2 lore raw
In reply to Minjie Du
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:

Quoted 7 lines · On Mon, 17 Jul 2023 15:11:09 +0800 you wrote:

Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using the existing helper folio_next_index().

---
 fs/f2fs/data.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Here is the summary with links:
- [f2fs-dev,v1] f2fs: increase usage of folio_next_index() helper

    https://git.kernel.org/jaegeuk/f2fs/c/a842a90926b6

You are awesome, thank you!

Signature · 10 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html




_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel