diff options
author | Chao Yu <yuchao0@huawei.com> | 2019-01-08 10:21:24 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-01-22 15:31:25 -0800 |
commit | ddf06b753a8573eb0323d91efeaffe397f7b673d (patch) | |
tree | 10fffee6d58a376cbb2c0f641746fdd0bae42e92 /block/partition-generic.c | |
parent | c20e57b32d817d35271c4b205cb6ab80d8d93aeb (diff) | |
download | linux-stable-ddf06b753a8573eb0323d91efeaffe397f7b673d.tar.gz linux-stable-ddf06b753a8573eb0323d91efeaffe397f7b673d.tar.bz2 linux-stable-ddf06b753a8573eb0323d91efeaffe397f7b673d.zip |
f2fs: fix to trigger fsck if dirent.name_len is zero
While traversing dirents in f2fs_fill_dentries(), if bitmap is valid,
filename length should not be zero, otherwise, directory structure
consistency could be corrupted, in this case, let's print related
info and set SBI_NEED_FSCK to trigger fsck for repairing.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'block/partition-generic.c')
0 files changed, 0 insertions, 0 deletions