“38938c879eb0c39edf85d5164aa0cffe2874304c”上不存在“include/linux/compiler-gcc5.h”
提交 e7bf1284 编写于 作者: D Deepa Dinamani 提交者: Yang Yingliang

ext4: Reduce ext4 timestamp warnings

mainline inclusion
from mainline-v5.4-rc1
commit cba465b4
category: bugfix
bugzilla: 50526
CVE: NA

-----------------------------------------------

When ext4 file systems were created intentionally with 128 byte inodes,
the rate-limited warning of eventual possible timestamp overflow are
still emitted rather frequently.  Remove the warning for now.

Discussion for whether any warning is needed,
and where it should be emitted, can be found at
https://lore.kernel.org/lkml/1567523922.5576.57.camel@lca.pw/.
I can post a separate follow-up patch after the conclusion.
Reported-by: NQian Cai <cai@lca.pw>
Signed-off-by: NDeepa Dinamani <deepa.kernel@gmail.com>
Reviewed-by: NAndreas Dilger <adilger@dilger.ca>
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NYu Kuai <yukuai3@huawei.com>
Reviewed-by: Nzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 36f72d8e
...@@ -851,10 +851,8 @@ do { \ ...@@ -851,10 +851,8 @@ do { \
(raw_inode)->xtime ## _extra = \ (raw_inode)->xtime ## _extra = \
ext4_encode_extra_time(&(inode)->xtime); \ ext4_encode_extra_time(&(inode)->xtime); \
} \ } \
else {\ else \
(raw_inode)->xtime = cpu_to_le32(clamp_t(int32_t, (inode)->xtime.tv_sec, S32_MIN, S32_MAX)); \ (raw_inode)->xtime = cpu_to_le32(clamp_t(int32_t, (inode)->xtime.tv_sec, S32_MIN, S32_MAX)); \
ext4_warning_inode(inode, "inode does not support timestamps beyond 2038"); \
} \
} while (0) } while (0)
#define EXT4_EINODE_SET_XTIME(xtime, einode, raw_inode) \ #define EXT4_EINODE_SET_XTIME(xtime, einode, raw_inode) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册