diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2014-01-20 18:37:30 +0800 |
---|---|---|
committer | rogersb11 <brettrogers11@gmail.com> | 2016-02-13 21:45:56 -0500 |
commit | 9e1423bdc50a030ca9ea0c5c807c427c6ed02daf (patch) | |
tree | d5780a3c2822e6ad20f08d5393c9637624e8c870 /fs/f2fs/node.c | |
parent | 11acf312c7ff169cc3710db49119d47d111b1696 (diff) | |
download | kernel_samsung_smdk4412-9e1423bdc50a030ca9ea0c5c807c427c6ed02daf.zip kernel_samsung_smdk4412-9e1423bdc50a030ca9ea0c5c807c427c6ed02daf.tar.gz kernel_samsung_smdk4412-9e1423bdc50a030ca9ea0c5c807c427c6ed02daf.tar.bz2 |
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.
Change-Id: Ie73897038bc06f6a6342d6fbdab8f8ff36b2cd96
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>
Diffstat (limited to 'fs/f2fs/node.c')
0 files changed, 0 insertions, 0 deletions