Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2450586imm; Sat, 16 Jun 2018 19:07:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIJdCZd8LELX3Xgrz5JFelhIf8fxgln6HRCBrPfS6wn4xmW2U9L+V5LrO0PvSe/T3TUZNak X-Received: by 2002:a63:7f51:: with SMTP id p17-v6mr6615874pgn.36.1529201269633; Sat, 16 Jun 2018 19:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529201269; cv=none; d=google.com; s=arc-20160816; b=xcgjEwIKidasdyUBkoCW52R8Ug56RXK3GrvSTgk2N0QTwhBtded7qfu8maLtSaUJFU 9WPmIkhIFW2GgqCuNuUXcgZ2E3dvedO86RJnf8j8LvAjQ6k9rTqh0xjFS3hj009gDyZ1 F7xha54Np+r+oRAr/tDZcqTi6RyabcYlgG/IrZYK7AkDgqXYw/KaPDAykJaslNPgBqae NIgAaVDTtusK04FzCNjvgRMOyfZH6rsYPexLcSB6px1m58S+uskTXEII+Gg9ICTRiVZS yrDCOity9IkGwyKvEP1ASVW7eRKKNn0v9IE4O4jqEm8ntmgod+wHbvrvYX1YYjOVCAcq cpQw== 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=27gJJVYOzoZhvkszKpAkX5aZ7sGNd1lH+bUIByrvFfw=; b=mtmbbHuubglTdSKB0PGXXFU8zJNlh1SUM9ZnjAH/wGjCkvs6wQ1qgZlqtui2edgykk KT0hSF6A5JA4H1wjjYTnwIffKwL2ng36Ummob58VKsew6aLJVl0WfFKyGKaxnt47cSdV 3GS1yjYmQzF08XeReYRyB+SqafQ1ukd4V9t0CW9xZ8rGCdGQJIAf3H1ERBggCD9ggjRn Hvd1RuDLYca3DBROUyM0k72ZdiHRMcncKiSA/xBfBWFGjqlICALHQ9nuLKhecznVcAvX j+6O/zNx5VZjYOx8Jqhoc9KCXnVoD5PSU+f1LRQDOBEQVx7ZVJPVzwHy7dQmVCxCQiW6 dyiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=O8sxXrvb; 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 j66-v6si11517345pfc.243.2018.06.16.19.07.35; Sat, 16 Jun 2018 19:07:49 -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=O8sxXrvb; 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 S934494AbeFQCGQ (ORCPT + 99 others); Sat, 16 Jun 2018 22:06:16 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59638 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934157AbeFQCBS (ORCPT ); Sat, 16 Jun 2018 22:01:18 -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=27gJJVYOzoZhvkszKpAkX5aZ7sGNd1lH+bUIByrvFfw=; b=O8sxXrvb6iYwppwmrYdwyEX0S M5gC9SzaVglJ3RNC++pzP7pDzQCMlZ1ds/T0k5mrzfDQo+npuQugjWFdGUQwNRZoqZ8R3bF2Tw8gC zbuW496tUk5+HkwsO5cWBGG/PRm/8XdGd0WbCirMSHOyAGdZTsK9wDMSmj1VSFMtna0FfhS6ueJLq Pbop59GjpykIZgnqh6D2C2yqDHt8/dHmFftce/gIAxpmDP6O59n99D7jlxij7sS7VkUdHEu3vjnN/ Ga/efyBU7yHJNnjl88DbkjdBIKqApxvHYbi76l5MDBckl9mqYTj58kOYWMlnh3/axDHWWStfTvab0 f4Lq48o+Q==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUN0C-0001SP-Up; Sun, 17 Jun 2018 02:01:12 +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 56/74] shmem: Comment fixups Date: Sat, 16 Jun 2018 19:00:34 -0700 Message-Id: <20180617020052.4759-57-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 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