projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c41a701
)
mm:page-writeback: use folio_next_index() helper in writeback_iter()
author
Yuesong Li
<liyuesong@vivo.com>
Wed, 21 Aug 2024 06:31:12 +0000
(14:31 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Wed, 4 Sep 2024 04:15:46 +0000
(21:15 -0700)
Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using
the existing helper folio_next_index().
Link:
https://lkml.kernel.org/r/20240821063112.4053157-1-liyuesong@vivo.com
Signed-off-by: Yuesong Li <liyuesong@vivo.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page-writeback.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/page-writeback.c
b/mm/page-writeback.c
index 4430ac68e4c4144907e7c7d10ff6728f7711f6ca..f5448311c89eb8aec778da56afc7566465e2f468 100644
(file)
--- a/
mm/page-writeback.c
+++ b/
mm/page-writeback.c
@@
-2612,7
+2612,7
@@
struct folio *writeback_iter(struct address_space *mapping,
done:
if (wbc->range_cyclic)
- mapping->writeback_index = folio
->index + folio_nr_pages
(folio);
+ mapping->writeback_index = folio
_next_index
(folio);
folio_batch_release(&wbc->fbatch);
return NULL;
}