]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/fscache-cache.h
mm/hotplug: invalid PFNs from pfn_to_online_page()
[mirror_ubuntu-bionic-kernel.git] / include / linux / fscache-cache.h
index 91be23fa037c0cc8432a698a401f0d6ae0e6565e..17a5541f49b312ef4ecf0acca81c5c5c8ffb43a8 100644 (file)
@@ -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);
 }