FS-Cache: Don't sleep in page release if __GFP_FS is not set
[platform/adaptation/renesas_rcar/renesas_kernel.git] / fs / fscache / page.c
index 4882c80..42f8f2d 100644 (file)
@@ -109,7 +109,7 @@ page_busy:
         * allocator as the work threads writing to the cache may all end up
         * sleeping on memory allocation, so we may need to impose a timeout
         * too. */
-       if (!(gfp & __GFP_WAIT)) {
+       if (!(gfp & __GFP_WAIT) || !(gfp & __GFP_FS)) {
                fscache_stat(&fscache_n_store_vmscan_busy);
                return false;
        }