pagevec: Initialise folio_batch->percpu_pvec_drained
[sfrench/cifs-2.6.git] / include / linux / pagevec.h
index dda8d5868c8163ba07f438b586dc6cb516acd7f6..67b1246f136b425f950e961cb65c336125509c19 100644 (file)
@@ -111,6 +111,7 @@ static_assert(offsetof(struct pagevec, pages) ==
 static inline void folio_batch_init(struct folio_batch *fbatch)
 {
        fbatch->nr = 0;
+       fbatch->percpu_pvec_drained = false;
 }
 
 static inline unsigned int folio_batch_count(struct folio_batch *fbatch)