Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2448505imm; Sat, 16 Jun 2018 19:04:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJcjlaNBMdUd8Uk65Tjp6FuVwypd19sUm8Y3tqsgZVljdTlbvcRXiRvK2MiKbkIaqZFLL2J X-Received: by 2002:aa7:854e:: with SMTP id y14-v6mr7940157pfn.165.1529201050964; Sat, 16 Jun 2018 19:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529201050; cv=none; d=google.com; s=arc-20160816; b=vnQsiRNYAL6tz9069sDK1Y34OGmZb4baTWDsGFf+Aeac5MuozxFeXe3IMHrhyBWJ9b trzeAFAHP6H4Y68Lh3F+6jk5ngQ9LBwktwj1s8RYOfKRWbGgJrANlEZVLB/8jjrDefd4 MLqkNPcy8cQvejLtD8Sx7TqfaHFKc0y866R/ChUhZ9czMmxTKsr0S/hLuuqJwhfjoaj+ FRjnAn5/Arv4Ye31ohfo0CJkfzeJtOtzwvMfCWmfALBB6J2F0dOGDDWoD5wsI+ZUYRNe UvpoTKYfoA8EIvwuALUddmXZfAC0jIcGVPdLGOcorEgYVqsT1aTTA56TjgfgIhEeJiTu NMNg== 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=LeMKahj/PRRicsA35gt3pl12oVGucoAeWFm4Rznk8kI=; b=BFRC2ij8AC1NYIWNWSRyTx3Osg2+50myUoifoXAh9Fgvmzb0Lk8oybwljq1g1JzR7j 4pPfMIbwuDGVh6jOayydMCyVpxyZBghH5ypDSr0RNVGCcBvUkGHqSRuHA9Xhe+HKtUF7 5i49gw81LHco9aVcAW91nxpmYJAdFTEwkpAhVWMdLOu31FPLFsbMM2H0f3X54wVwJwZV lB7NlD1+te7wJzgVEVfUYBuOUwRfCBA3wSocdSB6SoeeVXGM4o7nQwGCmIR7KK/KTucO nuu/tIrpw9fj7/eX041PN+C1y5iWbBvC3Kr5I1xTBqttzpQVtiRJ0eTo4Xqobt8R9mVK sVeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=L0zQsAnK; 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 a10-v6si11883411pls.480.2018.06.16.19.03.56; Sat, 16 Jun 2018 19:04:10 -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=L0zQsAnK; 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 S1757137AbeFQCDO (ORCPT + 99 others); Sat, 16 Jun 2018 22:03:14 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:60454 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934596AbeFQCBj (ORCPT ); Sat, 16 Jun 2018 22:01:39 -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=LeMKahj/PRRicsA35gt3pl12oVGucoAeWFm4Rznk8kI=; b=L0zQsAnKQFSFlP3s4Uy7N75+1 nPC4veNqYhTZLIm1yjdBG+P6y3GcDSB2X9TGr+5MrJDgw/DNWH3i0UBTn/GipemFOLO/glEMXyBqd ILhchaMO4//6rB+Grco2oSAKKl/oyajy7B7vWxpILaRurOWbPMhitMD54hpel9HFj7b6fFyPWkAAa XA6NPtza3i2uZcZbm1gi3gtHWo0oRwbBU9j/whTZWYiE+vBIRlsXjvBI7zGFDtmkO6Febfx4viKX1 FRnEEeAZe0dsRtQNsgXVyePntwpIa84EzsioDduDmJjoDn2T4Y0p35yN3dAfYvngIMAi1VaZYSVvw 50CcmW4LA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUN0c-0001gq-22; Sun, 17 Jun 2018 02:01:38 +0000 From: Matthew Wilcox To: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Matthew Wilcox , Jan Kara , Jeff Layton , Lukas Czerner , Ross Zwisler , Christoph Hellwig , Goldwyn Rodrigues , Nicholas Piggin , Ryusuke Konishi , linux-nilfs@vger.kernel.org, Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH v14 70/74] page cache: Finish XArray conversion Date: Sat, 16 Jun 2018 19:00:48 -0700 Message-Id: <20180617020052.4759-71-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180617020052.4759-1-willy@infradead.org> References: <20180617020052.4759-1-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 077a6174dfd5..8ab03bf193a4 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -349,7 +349,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 5cd42d05177e..3d813d2b5dff 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -596,7 +596,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.17.1