Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2407673yba; Mon, 22 Apr 2019 06:20:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQLqL4qj8ebRczuBXhnZH4+vE3F9N0KlxEhxp9T/br+0WEOns6JyKiMrhHXqah+chZKgBR X-Received: by 2002:a65:410c:: with SMTP id w12mr19112096pgp.268.1555939220077; Mon, 22 Apr 2019 06:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555939220; cv=none; d=google.com; s=arc-20160816; b=TDXnDY9NCruySm7YUMBqmDA9fig9ef0CKhMmYev+eEnA46qaF97S0aDfrGJf0B/B9A tI/nA072PlWZz67932D29ox9086+bBtOLt/4esayzRNsILNG+pMILXnpruLiY1ggLhNw xMzPbgj2ZSLtf4oTtvmqbscwGQJXAkY06PEZrNpfE1U4KPJ0ARlHIMLtTQedZITcQVoJ oHdRPy/PsFX4ibpoC/JPm+zJFQ7iHfNbF3hZjvmSFpds4JYWGouu9Ta3cw/ERD8m3+gO eCbZTm6KtIZQSS8ZM5g63++QKf8xGxVr2QKaD0cpz3cL8RUy8BedEdOp+Pd7WdeDNyug xNIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=ylaYuRe2EePsJWRax7FH8fcGSfV+zSEF/PkuzYyUKqs=; b=eDfQSg8tS7CYbJWQE5NYWBdkMDCBIQ9KPUC73i0ACCKQGwkhkLUvGEqp+Yaz8SPULv cHyg1ofZ8V+3BlIWzxsOIQv4W9wF1xrl2YU4KEj7inKDNXFTI5O2WGb1t0P2J0fgXs6x ZnxFyLgNQgvRArcWZsEddvaKrrdM2DnbzkSqF+aM9i4pirwGcQuOUYetrkW7+xxV+iPK 4C4KExL31IT6rDaQS3mUanbY1TtXzsBDxFi4XS2M6CA0v3hUEEvFH4e0I4Fhkc6I1jHM 8MmD1amxOQ8Ce/RP0xBJ4ZDgkeXBfIm5m49+UQgwlYs4J3RoB/IyT6vkXWoFlF0Ni3TA c73A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h22si13148841pfn.238.2019.04.22.06.20.04; Mon, 22 Apr 2019 06:20:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727021AbfDVNTN (ORCPT + 99 others); Mon, 22 Apr 2019 09:19:13 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6672 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726407AbfDVNTM (ORCPT ); Mon, 22 Apr 2019 09:19:12 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B29262D0E41B3BC73902; Mon, 22 Apr 2019 21:18:58 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Mon, 22 Apr 2019 21:18:54 +0800 From: Hou Tao To: , , CC: Subject: [PATCH] brd: re-enable __GFP_HIGHMEM in brd_insert_page() Date: Mon, 22 Apr 2019 21:23:21 +0800 Message-ID: <20190422132321.100156-1-houtao1@huawei.com> X-Mailer: git-send-email 2.16.2.dirty MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __GFP_HIGHMEM is disabled if dax is enabled on brd, however dax support for brd has been removed since commit (7a862fbbdec6 "brd: remove dax support"), so restore __GFP_HIGHMEM in brd_insert_page(). Also remove the no longer applicable comments about DAX and highmem. Cc: stable@vger.kernel.org Fixes: 7a862fbbdec6 ("brd: remove dax support") Signed-off-by: Hou Tao --- drivers/block/brd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/block/brd.c b/drivers/block/brd.c index c18586fccb6f..17defbf4f332 100644 --- a/drivers/block/brd.c +++ b/drivers/block/brd.c @@ -96,13 +96,8 @@ static struct page *brd_insert_page(struct brd_device *brd, sector_t sector) /* * Must use NOIO because we don't want to recurse back into the * block or filesystem layers from page reclaim. - * - * Cannot support DAX and highmem, because our ->direct_access - * routine for DAX must return memory that is always addressable. - * If DAX was reworked to use pfns and kmap throughout, this - * restriction might be able to be lifted. */ - gfp_flags = GFP_NOIO | __GFP_ZERO; + gfp_flags = GFP_NOIO | __GFP_ZERO | __GFP_HIGHMEM; page = alloc_page(gfp_flags); if (!page) return NULL; -- 2.16.2.dirty