summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/inode.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-02-12 14:29:28 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-02-22 16:07:23 -0800
commit7d9dfa1dd7f42bfb043c6090e22d0d77ff34b255 (patch)
treeaa7dc0b3d0e970d148bd16aac0771bfbcca1a81f /fs/f2fs/inode.c
parenta263669fa18f77981d8b4fa7a095ed8dfd17e354 (diff)
downloadop-kernel-dev-7d9dfa1dd7f42bfb043c6090e22d0d77ff34b255.zip
op-kernel-dev-7d9dfa1dd7f42bfb043c6090e22d0d77ff34b255.tar.gz
f2fs: avoid garbage lenghs in dentries
This patch fixes to eliminate garbage name lengths in dentries in order to provide correct answers of readdir. For example, if a valid dentry consists of: bitmap : 1 1 1 1 len : 32 0 x 0, readdir can start with second bit_pos having len = 0. Or, it can start with third bit_pos having garbage. In both of cases, we should avoid to try filling dentries. So, this patch not only removes any garbage length, but also avoid entering zero length case in readdir. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inode.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud