diff options
author | 2023-12-22 11:29:00 +0800 | |
---|---|---|
committer | 2023-12-26 13:06:32 -0800 | |
commit | 0145eed6ed3210f98b366e88363553251c41807d (patch) | |
tree | 3c813bf48466c89d2cf955155edc8ca155cf4be9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f2fs: Use wait_event_freezable_timeout() for freezable kthread (diff) | |
download | wireguard-linux-0145eed6ed3210f98b366e88363553251c41807d.tar.xz wireguard-linux-0145eed6ed3210f98b366e88363553251c41807d.zip |
f2fs: Constrain the modification range of dir_level in the sysfs
The {struct f2fs_sb_info}->dir_level can be modified through the sysfs
interface, but its value range is not limited. If the value exceeds
MAX_DIR_HASH_DEPTH and the mount options include "noinline_dentry",
the following error will occur:
[root@fedora ~]# mount -o noinline_dentry /dev/sdb /mnt/sdb/
[root@fedora ~]# echo 128 > /sys/fs/f2fs/sdb/dir_level
[root@fedora ~]# cd /mnt/sdb/
[root@fedora sdb]# mkdir test
[root@fedora sdb]# cd test/
[root@fedora test]# mkdir test
mkdir: cannot create directory 'test': Argument list too long
Signed-off-by: Yongpeng Yang <yangyongpeng1@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions