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. Signed-off-by: Wanpeng Li <liwp@linux.vnet.ibm.com> Cc: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
deaf386ee5
commit
3965c9ae47
9 changed files with 40 additions and 27 deletions
|
@ -189,9 +189,4 @@ void tag_pages_for_writeback(struct address_space *mapping,
|
|||
|
||||
void account_page_redirty(struct page *page);
|
||||
|
||||
/* pdflush.c */
|
||||
extern int nr_pdflush_threads; /* Global so it can be exported to sysctl
|
||||
read-only. */
|
||||
|
||||
|
||||
#endif /* WRITEBACK_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue