linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] f2fs: increase usage of folio_next_index() helper
@ 2023-07-17  7:11 Minjie Du
  2023-07-17 15:20 ` Chao Yu
  2023-08-14 20:50 ` [f2fs-dev] " patchwork-bot+f2fs
  0 siblings, 2 replies; 3+ messages in thread
From: Minjie Du @ 2023-07-17  7:11 UTC (permalink / raw)
  To: Jaegeuk Kim, Chao Yu, open list:F2FS FILE SYSTEM, open list
  Cc: opensource.kernel, Minjie Du

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

Signed-off-by: Minjie Du <duminjie@vivo.com>
---
 fs/f2fs/data.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 5882afe71..298024b07 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -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;
 			}
-- 
2.39.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] f2fs: increase usage of folio_next_index() helper
  2023-07-17  7:11 [PATCH v1] f2fs: increase usage of folio_next_index() helper Minjie Du
@ 2023-07-17 15:20 ` Chao Yu
  2023-08-14 20:50 ` [f2fs-dev] " patchwork-bot+f2fs
  1 sibling, 0 replies; 3+ messages in thread
From: Chao Yu @ 2023-07-17 15:20 UTC (permalink / raw)
  To: Minjie Du, Jaegeuk Kim, open list:F2FS FILE SYSTEM, open list
  Cc: opensource.kernel

On 2023/7/17 15:11, Minjie Du wrote:
> Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using
> the existing helper folio_next_index().
> 
> Signed-off-by: Minjie Du <duminjie@vivo.com>

Reviewed-by: Chao Yu <chao@kernel.org>

Thanks,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [f2fs-dev] [PATCH v1] f2fs: increase usage of folio_next_index() helper
  2023-07-17  7:11 [PATCH v1] f2fs: increase usage of folio_next_index() helper Minjie Du
  2023-07-17 15:20 ` Chao Yu
@ 2023-08-14 20:50 ` patchwork-bot+f2fs
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+f2fs @ 2023-08-14 20:50 UTC (permalink / raw)
  To: Minjie Du
  Cc: jaegeuk, chao, linux-f2fs-devel, linux-kernel, opensource.kernel

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@kernel.org>:

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().
> 
> Signed-off-by: Minjie Du <duminjie@vivo.com>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-14 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-17  7:11 [PATCH v1] f2fs: increase usage of folio_next_index() helper Minjie Du
2023-07-17 15:20 ` Chao Yu
2023-08-14 20:50 ` [f2fs-dev] " patchwork-bot+f2fs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).