History

mm: prepare for removal of obsolete /proc/sys/vm/nr_pdflush_threads

Since per-BDI flusher threads were introduced in 2.6, the pdflush mechanism is not used any more. But the old interface exported through /proc/sys/vm/nr_pdflush_threads still exists and is obviously useless. For back-compatibility, printk warning information and return 2 to notify the users that the interface is removed.

Wanpeng Li committed 14 years ago

Commit 3965c9a1 parent deaf3869 files · +40 −27Browse files

Showing the changes to kernel/sysctl_binary.c (1 of 9 files). Show all

Unified · Split

kernel/sysctl_binary.c+1−1
@@ -147,7 +147,7 @@ static const struct bin_table bin_vm_table[] = { · 146 unmodified lines
147147 { CTL_INT, VM_DIRTY_RATIO, "dirty_ratio" },
148148 /* VM_DIRTY_WB_CS "dirty_writeback_centisecs" no longer used */
149149 /* VM_DIRTY_EXPIRE_CS "dirty_expire_centisecs" no longer used */
150− { CTL_INT, VM_NR_PDFLUSH_THREADS, "nr_pdflush_threads" },
150+ /* VM_NR_PDFLUSH_THREADS "nr_pdflush_threads" no longer used */
151151 { CTL_INT, VM_OVERCOMMIT_RATIO, "overcommit_ratio" },
152152 /* VM_PAGEBUF unused */
153153 /* VM_HUGETLB_PAGES "nr_hugepages" no longer used */