diff options
| author | Yunlong Song <[email protected]> | 2016-04-27 20:32:37 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <[email protected]> | 2016-04-27 14:10:43 -0700 |
| commit | fe216c7a0ff993cdac885109d8544ba02e6f9127 (patch) | |
| tree | b54a115a88064435d89568366720baec2ead801c /tools/perf/scripts/python/bin | |
| parent | da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f (diff) | |
f2fs: fix to return 0 if err == -ENOENT in f2fs_readdir
Commit 57b62d29ad5b384775974973087d47755a8c6fcc ("f2fs: fix to report
error in f2fs_readdir") causes f2fs_readdir to return -ENOENT when
get_lock_data_page returns -ENOENT. However, the original logic is to
continue when get_lock_data_page returns -ENOENT, but it forgets to
reset err to 0.
This will cause getdents64 incorretly return -ENOENT when lastdirent is
NULL in getdents64. This will lead to a wrong return value for syscall
caller.
Signed-off-by: Yunlong Song <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions