backing-dev.c (1425075e7272faaa3629a1e2df679c0ba4cf55d3) backing-dev.c (1170532bb49f9468aedabdc1d5a560e2521a2bcc)
1
2#include <linux/wait.h>
3#include <linux/backing-dev.h>
4#include <linux/kthread.h>
5#include <linux/freezer.h>
6#include <linux/fs.h>
7#include <linux/pagemap.h>
8#include <linux/mm.h>

--- 1012 unchanged lines hidden (view full) ---

1021
1022 if (*ppos || *lenp < sizeof(kbuf)) {
1023 *lenp = 0;
1024 return 0;
1025 }
1026
1027 if (copy_to_user(buffer, kbuf, sizeof(kbuf)))
1028 return -EFAULT;
1
2#include <linux/wait.h>
3#include <linux/backing-dev.h>
4#include <linux/kthread.h>
5#include <linux/freezer.h>
6#include <linux/fs.h>
7#include <linux/pagemap.h>
8#include <linux/mm.h>

--- 1012 unchanged lines hidden (view full) ---

1021
1022 if (*ppos || *lenp < sizeof(kbuf)) {
1023 *lenp = 0;
1024 return 0;
1025 }
1026
1027 if (copy_to_user(buffer, kbuf, sizeof(kbuf)))
1028 return -EFAULT;
1029 printk_once(KERN_WARNING "%s exported in /proc is scheduled for removal\n",
1030 table->procname);
1029 pr_warn_once("%s exported in /proc is scheduled for removal\n",
1030 table->procname);
1031
1032 *lenp = 2;
1033 *ppos += *lenp;
1034 return 2;
1035}
1031
1032 *lenp = 2;
1033 *ppos += *lenp;
1034 return 2;
1035}