The patch titled Subject: mm/z3fold.c: use gfpflags_allow_blocking has been added to the -mm tree. Its filename is z3fold-use-gfpflags_allow_blocking.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/z3fold-use-gfpflags_allow_blocking.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/z3fold-use-gfpflags_allow_blocking.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx> Subject: mm/z3fold.c: use gfpflags_allow_blocking We have a perfectly good macro to determine whether the gfp flags allow you to sleep or not; use it instead of trying to infer it. Link: http://lkml.kernel.org/r/20180408062206.GC16007@xxxxxxxxxxxxxxxxxxxxxx Signed-off-by: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx> Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: Vitaly Wool <vitalywool@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/z3fold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/z3fold.c~z3fold-use-gfpflags_allow_blocking mm/z3fold.c --- a/mm/z3fold.c~z3fold-use-gfpflags_allow_blocking +++ a/mm/z3fold.c @@ -538,7 +538,7 @@ static int z3fold_alloc(struct z3fold_po struct z3fold_header *zhdr = NULL; struct page *page = NULL; enum buddy bud; - bool can_sleep = (gfp & __GFP_RECLAIM) == __GFP_RECLAIM; + bool can_sleep = gfpflags_allow_blocking(gfp); if (!size || (gfp & __GFP_HIGHMEM)) return -EINVAL; _ Patches currently in -mm which might be from mawilcox@xxxxxxxxxxxxx are z3fold-use-gfpflags_allow_blocking.patch list_debug-print-unmangled-addresses.patch autofs4-use-wait_event_killable.patch radix-tree-use-gfp_zonemask-bits-of-gfp_t-for-flags.patch mac80211_hwsim-use-define_ida.patch arm64-turn-flush_dcache_mmap_lock-into-a-no-op.patch unicore32-turn-flush_dcache_mmap_lock-into-a-no-op.patch export-__set_page_dirty.patch fscache-use-appropriate-radix-tree-accessors.patch xarray-add-the-xa_lock-to-the-radix_tree_root.patch page-cache-use-xa_lock.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html