projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0b72c1
)
pagevec: rename fbatch_count()
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Wed, 21 Jun 2023 16:45:51 +0000
(17:45 +0100)
committer
Andrew Morton
<akpm@linux-foundation.org>
Fri, 23 Jun 2023 23:59:29 +0000
(16:59 -0700)
This should always have been called folio_batch_count().
Link:
https://lkml.kernel.org/r/20230621164557.3510324-8-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/pagevec.h
patch
|
blob
|
history
diff --git
a/include/linux/pagevec.h
b/include/linux/pagevec.h
index
42aad53
..
3a9d29d
100644
(file)
--- a/
include/linux/pagevec.h
+++ b/
include/linux/pagevec.h
@@
-105,7
+105,7
@@
static inline unsigned int folio_batch_count(struct folio_batch *fbatch)
return fbatch->nr;
}
-static inline unsigned int fbatch_space(struct folio_batch *fbatch)
+static inline unsigned int f
olio_
batch_space(struct folio_batch *fbatch)
{
return PAGEVEC_SIZE - fbatch->nr;
}
@@
-124,7
+124,7
@@
static inline unsigned folio_batch_add(struct folio_batch *fbatch,
struct folio *folio)
{
fbatch->folios[fbatch->nr++] = folio;
- return fbatch_space(fbatch);
+ return f
olio_
batch_space(fbatch);
}
static inline void __folio_batch_release(struct folio_batch *fbatch)