diff options
author | Gao Xiang <hsiangkao@redhat.com> | 2020-12-08 10:58:34 +0100 |
---|---|---|
committer | Gao Xiang <hsiangkao@redhat.com> | 2020-12-08 11:08:22 +0100 |
commit | 473e15b0c0f7cf63a48f776937a02cb9dfcab252 (patch) | |
tree | 1bab87764a1abd3314d171e808240a547909c9a5 /fs/io-wq.c | |
parent | erofs: insert to managed cache after adding to pcl (diff) | |
download | linux-473e15b0c0f7cf63a48f776937a02cb9dfcab252.tar.xz linux-473e15b0c0f7cf63a48f776937a02cb9dfcab252.zip |
erofs: simplify try_to_claim_pcluster()
simplify try_to_claim_pcluster() by directly using cmpxchg() here
(the retry loop caused more overhead.) Also, move the chain loop
detection in and rename it to z_erofs_try_to_claim_pcluster().
Link: https://lore.kernel.org/r/20201208095834.3133565-3-hsiangkao@redhat.com
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
Diffstat (limited to 'fs/io-wq.c')
0 files changed, 0 insertions, 0 deletions