Message ID | 20180611140639.17215-40-willy@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1BC85601A0 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 11 Jun 2018 14:09:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 066D92835B for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 11 Jun 2018 14:09:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF33828451; Mon, 11 Jun 2018 14:09:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 791C42835B for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 11 Jun 2018 14:09:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8FB8D6B0284; Mon, 11 Jun 2018 10:06:59 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 880676B0285; Mon, 11 Jun 2018 10:06:59 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5C5346B0287; Mon, 11 Jun 2018 10:06:59 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl0-f72.google.com (mail-pl0-f72.google.com [209.85.160.72]) by kanga.kvack.org (Postfix) with ESMTP id 1F5E86B0286 for <linux-mm@kvack.org>; Mon, 11 Jun 2018 10:06:59 -0400 (EDT) Received: by mail-pl0-f72.google.com with SMTP id s3-v6so10786630plp.21 for <linux-mm@kvack.org>; Mon, 11 Jun 2018 07:06:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references; bh=MujQtudD6HapXlrwSi8huMmGpeKkjTkBkrUZuiJikXE=; b=XNyFNtM83Ty6/jxdBP02wLYkfJLKIoQ7cKWgbD3Vc1FTLbVIDcgQ5aHGZWqM511+Kf uM47dTV2Ph44sZ8+O+AHdi80AdegFeawldGKZqQxqE3ZjgGn83VnFO2anvfUgHWWcyMM o7aEOTpsfOc2+anIuayvOkzS7qiSSHeiJf+m8oSiAQ6EbOk1Dl39PX5XijROCTq4bxxu dyc89EbW4YRVJI6jFJ3ls9zxuUTGJw51yx5bniObzjzfZ3G8JPzjO1ansUA7RN8cs6iK gDw//AsXc43xM4BhUrPbrtBS9+W9LfyJL6P0is8Z/gS707AkRKO/nKkrsdfpWGEWiXkD MLOw== X-Gm-Message-State: APt69E3No0LWqFY8xbJV7BVgqpAZagqTxLqLm2L94tb17u91W/pGlIJO aoZW2lUsGPoMkCP4h5KHSt7Y6h+A57ykFu/xh/yZ3dPXMbal1lJSj1XE0QEfD3l4ikIygnnmIJV ET4lDIxzbAw2KdYxU0eN+8AOMjp0dd1WUCwk1M+VFGOo8jNdrCEhM4YuR1xfUC1tVnQ== X-Received: by 2002:a62:4715:: with SMTP id u21-v6mr17840411pfa.89.1528726018818; Mon, 11 Jun 2018 07:06:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJRZaOwyMDaMVeSeUJv3PKBsG1n2IUp63gOJvBqn3tLNy34209oOOxuXNzOPjVr1Dvdb39P X-Received: by 2002:a62:4715:: with SMTP id u21-v6mr17840361pfa.89.1528726018155; Mon, 11 Jun 2018 07:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528726018; cv=none; d=google.com; s=arc-20160816; b=Bhncd948DJtFfhInsv8cFIuZwaiW8vmkuRk1dprdSGZY6yOPv05ye/1/4lNGxmLQAC beoRmq7js8G3AiKmHeWqrQIDs35ZGTantZPFmAR28HMeEL6xpIw7z8t6qmVq/oLUQEti GS6TwYmGHXC4AOLSCIB06p2NxAPRi+Un0QxIRZ+Wki4vK9cXt4SEKwItu5V9JHgVlN5/ 9Hf90/znqTzgntrG+PxUiiexPQpKGpx8+l0SCf17pWVV2mvQG+1ALEEXKr2c/c/fhjH6 /Tf5gO7hCIvXJatprCZOt22nZRtGiMpPsuc2YGSlMGXmsBjcny3g0QKCEE9qckUxY2Vh Wz2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=MujQtudD6HapXlrwSi8huMmGpeKkjTkBkrUZuiJikXE=; b=awtlcnNHpXn8fP+zmzMMvN1ySS4+K4uDDfe1OhcMxxxkZjjRzPvpd4qsEJU4K/xaku aghzk3xezHXFqJNYW+uzTOkL3oUedQhINCNPJTFiHBWPof/merF/RTCqTa1hWv5rtIM9 bZ9zMHE5UqfArxNFG2ViT1tfVU7EhobnUeEhHbpu0bTrFhqIZOjfGJv7WGEz0qMmk5FA GSbAzFO1HYbV/ffm8ov0kxa7yGXBTSTZ2tIvfwPGz9CsX05bIBm6grGgZsl483t2NxDE rUMR9VG+AV0sLgdD1IsFJj/xS07Y0NVBKFF7uGZGmrTBLOQhc5LoZh0fpCh63I7+ieEL XyPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20170209 header.b=oeORb1zk; spf=pass (google.com: best guess record for domain of willy@infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom=willy@infradead.org Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id n18-v6si27179580pgd.541.2018.06.11.07.06.58 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Jun 2018 07:06:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of willy@infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20170209 header.b=oeORb1zk; spf=pass (google.com: best guess record for domain of willy@infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom=willy@infradead.org 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=MujQtudD6HapXlrwSi8huMmGpeKkjTkBkrUZuiJikXE=; b=oeORb1zkr0yVfKJawkiF8tapz AP283ohq5CrZArgIGTWnvMCIr8sfI3jNzzfxmmQ9fD+AbFJKaKb8ZREua/EzVkPyErflY/DfaReCs rgzrDHCyo4jU+nseYGNF7ybp3CxQkfWrN6PXsONZYBtGv8e616D9KXlg3kBWPtEorGlakzOd4wRkb UAy70hJFoIYsui4qBhNL9KnBopPmd+zunjg7yYGCietgss5AcobvIiEGOO0tziaAa6SdDPdELVPOM rQwtM+v7XaDX5tLNQnBOE+uaDpRWkxq1PffuCjrgUjHazMoPA9DC+YDW/yyrsJRQ00p5kWB6wu9qU UM1uOmuIA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fSNTE-0004mW-UX; Mon, 11 Jun 2018 14:06:56 +0000 From: Matthew Wilcox <willy@infradead.org> To: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Matthew Wilcox <mawilcox@microsoft.com>, Jan Kara <jack@suse.cz>, Jeff Layton <jlayton@redhat.com>, Lukas Czerner <lczerner@redhat.com>, Ross Zwisler <ross.zwisler@linux.intel.com>, Christoph Hellwig <hch@lst.de>, Goldwyn Rodrigues <rgoldwyn@suse.com>, Nicholas Piggin <npiggin@gmail.com>, Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>, linux-nilfs@vger.kernel.org, Jaegeuk Kim <jaegeuk@kernel.org>, Chao Yu <yuchao0@huawei.com>, linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH v13 39/72] mm: Convert __do_page_cache_readahead to XArray Date: Mon, 11 Jun 2018 07:06:06 -0700 Message-Id: <20180611140639.17215-40-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180611140639.17215-1-willy@infradead.org> References: <20180611140639.17215-1-willy@infradead.org> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/mm/readahead.c b/mm/readahead.c index 59998ca31f2a..07f9734dc79f 100644 --- a/mm/readahead.c +++ b/mm/readahead.c @@ -174,9 +174,7 @@ unsigned int __do_page_cache_readahead(struct address_space *mapping, if (page_offset > end_index) break; - rcu_read_lock(); - page = radix_tree_lookup(&mapping->i_pages, page_offset); - rcu_read_unlock(); + page = xa_load(&mapping->i_pages, page_offset); if (page && !xa_is_value(page)) { /* * Page already present? Kick off the current batch of