X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=include%2Flinux%2Ffscache-cache.h;h=17a5541f49b312ef4ecf0acca81c5c5c8ffb43a8;hb=ada8b8da0a063722696a944dcbda2e397c8458e9;hp=91be23fa037c0cc8432a698a401f0d6ae0e6565e;hpb=2c35be143bbf50c930269793e53129e8156889bc;p=mirror_ubuntu-bionic-kernel.git diff --git a/include/linux/fscache-cache.h b/include/linux/fscache-cache.h index 91be23fa037c..17a5541f49b3 100644 --- a/include/linux/fscache-cache.h +++ b/include/linux/fscache-cache.h @@ -183,7 +183,7 @@ static inline void fscache_enqueue_retrieval(struct fscache_retrieval *op) static inline void fscache_retrieval_complete(struct fscache_retrieval *op, int n_pages) { - if (atomic_sub_return(n_pages, &op->n_pages) <= 0) + if (atomic_sub_return_relaxed(n_pages, &op->n_pages) <= 0) fscache_op_complete(&op->op, true); }