提交 a466f5dd 编写于 作者: L Lu Jialin 提交者: Zheng Zengkai

fs/filescontrol.c: fix warning:large integer implicitly truncated to unsigned type

hulk inclusion
category: bugfix
bugzilla: 50779
CVE: NA

--------

page_counter_set_max(struct page_counter *counter, unsigned long nr_pages)
the nr_pages is unsigned long, therefore change FILES_MAX to ULONG_MAX
Signed-off-by: NLu Jialin <lujialin4@huawei.com>
Reviewed-by: NXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 319e568b
......@@ -27,7 +27,7 @@
#include <linux/sched/signal.h>
#include <linux/module.h>
#define FILES_MAX ULLONG_MAX
#define FILES_MAX ULONG_MAX
#define FILES_MAX_STR "max"
static bool no_acct;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册