]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: remove the orphan block page array
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Mon, 20 Jan 2014 10:37:30 +0000 (18:37 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 22 Jan 2014 09:41:08 +0000 (18:41 +0900)
commit5eadc6e458826200542c977debf43cf066ac05cb
treefa9316dc060b249f9881f5c7adc5ed0d3358163a
parent997e5d48bde6fc879a3f78c2385c352c0316052d
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 <dan.carpenter@oracle.com>
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/checkpoint.c