···274274}275275276276/*277277- * Kick pdflush then try to free up some ZONE_NORMAL memory.277277+ * Kick the writeback threads then try to free up some ZONE_NORMAL memory.278278 */279279static void free_more_memory(void)280280{···16991699 /*17001700 * If it's a fully non-blocking write attempt and we cannot17011701 * lock the buffer then redirty the page. Note that this can17021702- * potentially cause a busy-wait loop from pdflush and kswapd17031703- * activity, but those code paths have their own higher-level17041704- * throttling.17021702+ * potentially cause a busy-wait loop from writeback threads17031703+ * and kswapd activity, but those code paths have their own17041704+ * higher-level throttling.17051705 */17061706 if (wbc->sync_mode != WB_SYNC_NONE || !wbc->nonblocking) {17071707 lock_buffer(bh);···31913191 * still running obsolete flush daemons, so we terminate them here.31923192 *31933193 * Use of bdflush() is deprecated and will be removed in a future kernel.31943194- * The `pdflush' kernel threads fully replace bdflush daemons and this call.31943194+ * The `flush-X' kernel threads fully replace bdflush daemons and this call.31953195 */31963196SYSCALL_DEFINE2(bdflush, int, func, long, data)31973197{
+1-4
fs/fs-writeback.c
···320320 * For inodes being constantly redirtied, dirtied_when can get stuck.321321 * It _appears_ to be in the future, but is actually in distant past.322322 * This test is necessary to prevent such wrapped-around relative times323323- * from permanently stopping the whole pdflush writeback.323323+ * from permanently stopping the whole bdi writeback.324324 */325325 ret = ret && time_before_eq(inode->dirtied_when, jiffies);326326#endif···10841084 *10851085 * If older_than_this is non-NULL, then only write out inodes which10861086 * had their first dirtying at a time earlier than *older_than_this.10871087- *10881088- * If we're a pdlfush thread, then implement pdflush collision avoidance10891089- * against the entire list.10901087 *10911088 * If `bdi' is non-zero then we're being asked to writeback a specific queue.10921089 * This function assumes that the blockdev superblock's inodes are backed by
+4-4
mm/page-writeback.c
···5858/* The following parameters are exported via /proc/sys/vm */59596060/*6161- * Start background writeback (via pdflush) at this percentage6161+ * Start background writeback (via writeback threads) at this percentage6262 */6363int dirty_background_ratio = 10;6464···477477 * balance_dirty_pages() must be called by processes which are generating dirty478478 * data. It looks at the number of dirty pages in the machine and will force479479 * the caller to perform writeback if the system is over `vm_dirty_ratio'.480480- * If we're over `background_thresh' then pdflush is woken to perform some481481- * writeout.480480+ * If we're over `background_thresh' then the writeback threads are woken to481481+ * perform some writeout.482482 */483483static void balance_dirty_pages(struct address_space *mapping,484484 unsigned long write_chunk)···582582 bdi->dirty_exceeded = 0;583583584584 if (writeback_in_progress(bdi))585585- return; /* pdflush is already working this queue */585585+ return;586586587587 /*588588 * In laptop mode, we wait until hitting the higher threshold before
+3-2
mm/shmem.c
···10461046 * sync from ever calling shmem_writepage; but a stacking filesystem10471047 * may use the ->writepage of its underlying filesystem, in which case10481048 * tmpfs should write out to swap only in response to memory pressure,10491049- * and not for pdflush or sync. However, in those cases, we do still10501050- * want to check if there's a redundant swappage to be discarded.10491049+ * and not for the writeback threads or sync. However, in those cases,10501050+ * we do still want to check if there's a redundant swappage to be10511051+ * discarded.10511052 */10521053 if (wbc->for_reclaim)10531054 swap = get_swap_page();
+4-4
mm/vmscan.c
···17091709 *17101710 * If the caller is !__GFP_FS then the probability of a failure is reasonably17111711 * high - the zone may be full of dirty or under-writeback pages, which this17121712- * caller can't do much about. We kick pdflush and take explicit naps in the17131713- * hope that some of these pages can be written. But if the allocating task17141714- * holds filesystem locks which prevent writeout this might not work, and the17151715- * allocation attempt will fail.17121712+ * caller can't do much about. We kick the writeback threads and take explicit17131713+ * naps in the hope that some of these pages can be written. But if the17141714+ * allocating task holds filesystem locks which prevent writeout this might not17151715+ * work, and the allocation attempt will fail.17161716 *17171717 * returns: 0, if no pages reclaimed17181718 * else, the number of pages reclaimed