diff options
| author | Gu Zheng <[email protected]> | 2014-01-20 10:37:30 +0000 |
|---|---|---|
| committer | Jaegeuk Kim <[email protected]> | 2014-01-22 09:41:08 +0000 |
| commit | 63f5384c9a7df95a0e0eb6745f3038c703bdf4c3 (patch) | |
| tree | fa9316dc060b249f9881f5c7adc5ed0d3358163a /lib/assoc_array.c | |
| parent | f2fs: add help function META_MAPPING (diff) | |
| download | kernel-63f5384c9a7df95a0e0eb6745f3038c703bdf4c3.tar.gz kernel-63f5384c9a7df95a0e0eb6745f3038c703bdf4c3.zip | |
f2fs: remove the orphan block page array
As the orphan_blocks may be max to 504, so it is not security
and rigorous to store such a large array in the kernel stack
as Dan Carpenter said.
In fact, grab_meta_page has locked the page in the page cache,
and we can use find_get_page() to fetch the page safely in the
downstream, so we can remove the page array directly.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Gu Zheng <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions
