Revert "mm, pagevec: rename pagevec drained field"

This reverts commit b698bab3fb23bbc51f113883f9c62cd3b8838342.
This commit is contained in:
azrim 2022-07-01 09:13:21 +00:00
parent 57dc933b43
commit aa4e942d07
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ struct address_space;
struct pagevec {
unsigned long nr;
bool percpu_pvec_drained;
bool drained;
struct page *pages[PAGEVEC_SIZE];
};
@ -53,7 +53,7 @@ static inline unsigned pagevec_lookup_tag(struct pagevec *pvec,
static inline void pagevec_init(struct pagevec *pvec)
{
pvec->nr = 0;
pvec->percpu_pvec_drained = false;
pvec->drained = false;
}
static inline void pagevec_reinit(struct pagevec *pvec)

View File

@ -833,9 +833,9 @@ EXPORT_SYMBOL(release_pages);
*/
void __pagevec_release(struct pagevec *pvec)
{
if (!pvec->percpu_pvec_drained) {
if (!pvec->drained) {
lru_add_drain();
pvec->percpu_pvec_drained = true;
pvec->drained = true;
}
release_pages(pvec->pages, pagevec_count(pvec), 0);
pagevec_reinit(pvec);