diff options
| author | Chao Yu <[email protected]> | 2014-05-28 00:56:09 +0000 |
|---|---|---|
| committer | Jaegeuk Kim <[email protected]> | 2014-06-04 04:34:30 +0000 |
| commit | bfec07d0f8ed78b10df3ca3bc23e27de1166ea45 (patch) | |
| tree | c6134dfc647176474944cbb244bd15de4d4607ac /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | f2fs: fix recursive lock by f2fs_setxattr (diff) | |
| download | kernel-bfec07d0f8ed78b10df3ca3bc23e27de1166ea45.tar.gz kernel-bfec07d0f8ed78b10df3ca3bc23e27de1166ea45.zip | |
f2fs: avoid overflow when large directory feathure is enabled
When large directory feathure is enable, We have one case which could cause
overflow in dir_buckets() as following:
special case: level + dir_level >= 32 and level < MAX_DIR_HASH_DEPTH / 2.
Here we define MAX_DIR_BUCKETS to limit the return value when the condition
could trigger potential overflow.
Changes from V1
o modify description of calculation in f2fs.txt suggested by Changman Lee.
Suggested-by: Changman Lee <[email protected]>
Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
