Received: by 10.213.65.68 with SMTP id h4csp350749imn; Tue, 13 Mar 2018 06:29:21 -0700 (PDT) X-Google-Smtp-Source: AG47ELsDtj3l1zPJfwI2nl7QVlIDEYBn6OWlNV6pxVDQM5fHgMp28IEO6hCKZTpl70oxRngmlKst X-Received: by 10.99.43.67 with SMTP id r64mr485808pgr.403.1520947761357; Tue, 13 Mar 2018 06:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520947761; cv=none; d=google.com; s=arc-20160816; b=VSy3wX6WtYpOagFoC7ofRQldV2fOJ0tKI5LlCtiybidfKVVo8juY3c3N1j01RdwcAF M+Dkk6Ow+pHer6bV5Fsq8P7hgKvIWQi4/+9xwYx4uw5CGMIXCvWMdjs2MY9li1fbEsNI /Gl2zKqo3Op6xFMSzzWbn5Ha7S3vJrpJPpM85UehLwJjIHnhongIZXkpj1GH1IJpWRfs fc0L299CzE5upJ0710PGYNGbplNJSH3DRQrGjQuDxuVEtqKea93gDyt98MvcqgGHDMi+ lE22wTsMqZGIT0I49apbxI6N/f9J4BRDN3S3vFVmH+NKdrOtAwsniNWga768QTD7yJfE YWZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=KzTYBxjVRP5/cEfay4uXpkGsJ3YsY4GVKGNdxVEajyc=; b=XXm1wMifV59wTgktxUdGV5wi79Evt9oCaZ1KE1/IijO10JQDMFP6xnIzoQLqtxR06h EcTu/2OSn1G9RrUQHLhmI1+luSt033OZu09j47QAzYdUWKhASrkEaKnFwGJupcMEYVjt PnoF20V+21WDOWpy01ypvjmQulB2uzPKdBbK5Uhws3G93AGJfDxd1io+jEkvOWuG2qoA 6wQNEISuyVn/czXAEZf3I/XQvtQTws3dOt4Jzo/yrRnsdTvHFjqAzXx//vcOCg0utW92 l6wCgI6pKhCD++IlC2L5zYeAjerTd3Gg3gm5yad+NGcZTku7KNmmFcpmTim+3+KGCTLA jx6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=emu7MPbL; 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 m16si117211pgn.416.2018.03.13.06.29.06; Tue, 13 Mar 2018 06:29:21 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=emu7MPbL; 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 S1752775AbeCMN1t (ORCPT + 99 others); Tue, 13 Mar 2018 09:27:49 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35690 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932746AbeCMN1K (ORCPT ); Tue, 13 Mar 2018 09:27:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KzTYBxjVRP5/cEfay4uXpkGsJ3YsY4GVKGNdxVEajyc=; b=emu7MPbLypAkIu602ToXiw7ta 0Gzq9dZaUJ/XMcwWoxVxRI4y0kzBExU3m0P22Fi9nz5N3VnmB4FDRiJd6Ej7wmNH9q6NMC6YkotVP Hy0xQdHOGY+klAfel6NwRRDnen29Sfmwo/8i3oKsvDv8n27CmYYW86h1BmuDHQG2VAk6p6UU1eNOt heSAQFEI13VpVLHluR3tiIEfY62DcyXui0q8vxDi8CaoDftz7gpJeMGraegWuVdE1MkcRSAdufVeP CRNKLBOTl+Xg3ubp1tHc7jfkIBhu7HyWx0KtaXwkHMQ7OU2ImrK4Yk/2jlxGC4MFbrgGi3GBJct3J 6cIWGosxg==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1evjxM-0004oD-N8; Tue, 13 Mar 2018 13:27:08 +0000 From: Matthew Wilcox To: Andrew Morton Cc: Matthew Wilcox , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Ryusuke Konishi , linux-nilfs@vger.kernel.org Subject: [PATCH v9 60/61] page cache: Finish XArray conversion Date: Tue, 13 Mar 2018 06:26:38 -0700 Message-Id: <20180313132639.17387-61-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180313132639.17387-1-willy@infradead.org> References: <20180313132639.17387-1-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox With no more radix tree API users left, we can drop the GFP flags and use xa_init() instead of INIT_RADIX_TREE(). Signed-off-by: Matthew Wilcox --- fs/inode.c | 2 +- mm/swap_state.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/inode.c b/fs/inode.c index 13ceb98c3bd3..d40c1c16febe 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -348,7 +348,7 @@ EXPORT_SYMBOL(inc_nlink); static void __address_space_init_once(struct address_space *mapping) { - INIT_RADIX_TREE(&mapping->i_pages, GFP_ATOMIC | __GFP_ACCOUNT); + xa_init_flags(&mapping->i_pages, XA_FLAGS_LOCK_IRQ); init_rwsem(&mapping->i_mmap_rwsem); INIT_LIST_HEAD(&mapping->private_list); spin_lock_init(&mapping->private_lock); diff --git a/mm/swap_state.c b/mm/swap_state.c index a0a562fbc65f..208a95ad00e6 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -599,7 +599,7 @@ int init_swap_address_space(unsigned int type, unsigned long nr_pages) return -ENOMEM; for (i = 0; i < nr; i++) { space = spaces + i; - INIT_RADIX_TREE(&space->i_pages, GFP_ATOMIC|__GFP_NOWARN); + xa_init_flags(&space->i_pages, XA_FLAGS_LOCK_IRQ); atomic_set(&space->i_mmap_writable, 0); space->a_ops = &swap_aops; /* swap cache doesn't use writeback related tags */ -- 2.16.1