Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4110498imm; Mon, 11 Jun 2018 07:10:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLMqsUAMgmnoDDw9Y07kvwkqjBzHM0T+wcWSsyDLrpbhW+lkAL18nuZN9y9obR0AvNKUnOp X-Received: by 2002:a63:6142:: with SMTP id v63-v6mr14576191pgb.390.1528726244589; Mon, 11 Jun 2018 07:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528726244; cv=none; d=google.com; s=arc-20160816; b=gGhuJy+CSeTrubKG3SWdpD68BQ2aVmqOsBSS/rsK2jf8pNEX0SOh7mTepHT0C6i7ui oC0/zN+O8MDBhzCFrfBoIXiJlMb5ULGNVfEUFtTCX4kIJfiXr4BhhRTHntrvJZsXfXV5 hofs7sw98SYVEQJDYeQdJTCOgSf1eSnM8QsIKjJsHKD404fJlxVXkiuRiOkb7ajR413E sUJWCXt7xfHx+OrDDj7VO+fBgU4muYwhwTYwtfEEXMvUNMoGA7HgtHHonAlIq0m1JrKQ GIpnri/Oi10Azm34032VnFrHQsvfBKwGsxOzQDtKRvwT/avI5bap+hMikb3ZZyOCc8R5 2QHQ== 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=UgFl0dysXKDbf8W2SmP4EbGU6+EmivqudowCUQbLCL0=; b=OZBx0KzKYw2fPVrcwLiWS0EulOpCpujBDghcnD1dn9TnK4djr1RHAgvmQdRUJn0SaB ZXnoAH7g0T1siqaSCImn2cz6bZJqCmfpdYb4Lkyd7iTrAwEVDEiZKmN5G+dcwSXGCgrv y1QZxTg5Uo3BWEnqLa5BGULs6pp6hO+1N8YkwhPthYo5whPSsrVFZRKss+V8G6GvDz2S UU4yy1ELjsr3VK4ypYGlW82kqyz3V3oVAbDpE3ccCXLpww0WGyMJASC69AFsSAGDVXJY PNIHdjCvz3RTlULgqB5W00OuQQpha7FZjY4du3A4jYHxLmYasobe7K2cUBljQBlyfiod V7Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=S1LKptTF; 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 u10-v6si10542754plu.160.2018.06.11.07.10.30; Mon, 11 Jun 2018 07:10:44 -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=S1LKptTF; 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 S933683AbeFKOHW (ORCPT + 99 others); Mon, 11 Jun 2018 10:07:22 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46352 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933618AbeFKOHH (ORCPT ); Mon, 11 Jun 2018 10:07:07 -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=UgFl0dysXKDbf8W2SmP4EbGU6+EmivqudowCUQbLCL0=; b=S1LKptTFb6IwBRg/HFYNOtO6s xvhJtCtRZZ/azdaRVrsVXBKxznY8NRzGqqPsxzoPcIMpgWcNGO7pCGmrSJPVpo4dy8tBWbejz0l6Y VYDcFR3PfrFZROAhODYJfzw3uvV6DaAd6MoPsXunHLLukqr8LCSD9+yfcEWMLTuO7niKodKCY+9lU 1Xv3Mw3lWkVdARbEiBYjYfV/pLnKM+0ssccRgRT+LLmxWjLfTe/YZofGJzhmPAw+zJahrprKdfIUq /Bl/g6MqmnFDZNRPCJuSuUibq3I5cq6ZXH6flRzvCuoRb0vyp0UOCTExJzauIo/8c8ean3HGkQRx0 r7QfT+jow==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fSNTO-0004wc-TE; Mon, 11 Jun 2018 14:07:06 +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 v13 55/72] shmem: Comment fixups Date: Mon, 11 Jun 2018 07:06:22 -0700 Message-Id: <20180611140639.17215-56-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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox Remove the last mentions of radix tree from various comments. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/shmem.c b/mm/shmem.c index bffb87854852..5f14acf95eff 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -766,7 +766,7 @@ void shmem_unlock_mapping(struct address_space *mapping) } /* - * Remove range of pages and swap entries from radix tree, and free them. + * Remove range of pages and swap entries from page cache, and free them. * If !unfalloc, truncate or punch hole; if unfalloc, undo failed fallocate. */ static void shmem_undo_range(struct inode *inode, loff_t lstart, loff_t lend, @@ -1146,10 +1146,10 @@ static int shmem_unuse_inode(struct shmem_inode_info *info, * We needed to drop mutex to make that restrictive page * allocation, but the inode might have been freed while we * dropped it: although a racing shmem_evict_inode() cannot - * complete without emptying the radix_tree, our page lock + * complete without emptying the page cache, our page lock * on this swapcache page is not enough to prevent that - * free_swap_and_cache() of our swap entry will only - * trylock_page(), removing swap from radix_tree whatever. + * trylock_page(), removing swap from page cache whatever. * * We must not proceed to shmem_add_to_page_cache() if the * inode has been freed, but of course we cannot rely on @@ -1215,7 +1215,7 @@ int shmem_unuse(swp_entry_t swap, struct page *page) false); if (error) goto out; - /* No radix_tree_preload: swap entry keeps a place for page in tree */ + /* No memory allocation: swap entry occupies the slot for the page */ error = -EAGAIN; mutex_lock(&shmem_swaplist_mutex); @@ -1889,7 +1889,7 @@ alloc_nohuge: page = shmem_alloc_and_acct_page(gfp, inode, spin_unlock_irq(&info->lock); goto repeat; } - if (error == -EEXIST) /* from above or from radix_tree_insert */ + if (error == -EEXIST) goto repeat; return error; } @@ -2501,7 +2501,7 @@ static ssize_t shmem_file_read_iter(struct kiocb *iocb, struct iov_iter *to) } /* - * llseek SEEK_DATA or SEEK_HOLE through the radix_tree. + * llseek SEEK_DATA or SEEK_HOLE through the page cache. */ static pgoff_t shmem_seek_hole_data(struct address_space *mapping, pgoff_t index, pgoff_t end, int whence) -- 2.17.1