aboutsummaryrefslogtreecommitdiff
path: root/lib/assoc_array.c
diff options
context:
space:
mode:
authorGao Xiang <gaoxiang25@huawei.com>2018-12-08 00:19:15 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-07 17:10:48 +0100
commit9248fce714d5317650b316cf418ea396562e767e (patch)
tree3e02dd869a8aa7a75ffc45e30d76ebba48d189b5 /lib/assoc_array.c
parent672e54761025997b088d3b8e6c3bb20a71fb32f6 (diff)
staging: erofs: revisit the page submission flow
Previously, the submission flow works with cached compressed pages reclaim path in a tricky way, and it could be buggy if the reclaim path changes later without such tricky restrictions. For example, currently one PagePrivate(page) is evaluated without taking page lock (it only follows a wait_for_page_locked which closes such race) and no handling solves the potential page truncation case. In addition, it's also full of #ifdefs in the function, which is hard to understand and maintain. this patch fixes them all. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Gao Xiang <gaoxiang25@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions