Received: by 10.213.65.68 with SMTP id h4csp355910imn; Tue, 13 Mar 2018 06:37:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELtp2HC5femp0zXeQQofE/6SxojtxUQeHF5HFbhnvv165xK4zKtPpWUZ4Luki40NnGJgDqHA X-Received: by 2002:a17:902:8ec4:: with SMTP id x4-v6mr618975plo.402.1520948278201; Tue, 13 Mar 2018 06:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520948278; cv=none; d=google.com; s=arc-20160816; b=glXdJOaud/h9ZQceuk9N4oaq1+TWRv7cXWV84lR3hqI0SbKF0Tcv5636fpK5U3VqGV g0Tm66GouvXE3QLPCAnd+jH2z173IoXOJvNEqeKyGIwrAgFm3gYIydRHtv9xRtjekdLl TZoGEeBQ6s/D/Z6BMTEap/brw4OpPGhJgXAz+iqwBexD8lP/RrAjp0tExqJ74cWeOc65 xoQcGzttm3GB+g8HMPVgXfnjRCR6uGbl06M/Z09PE2M+1wsGBTA49vfKZcEBCzZZ0RP0 sLFoPJw99rbMFmRCFK1LCjoSGzkhHr+I5mYPdVKjH8zktXZ0ZU8zeqM9+aUFpaALS8xr 7mRA== 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=ox2sTRQ87PNUtSRGfsNF7BbgSHI71IODEwo2d5bJ3rw=; b=XU3jiSCedEJYqz64kKeFZpn7ryRPSd2gMsUFcPwYZVRPgx2G3rKq7CvC+0pEq25QwU mCOsOk57vdnzv2AfieVLuBcuAQP2kYGiBt0voaneaUhuNHcIfls4la5cAPSarq6cgu35 /svcBu/Fmacupn53mv+ggiI2RGGCUakG5Y+PTG0s3d+mnD4Dx6GpZdpuCJiGGvOaR3Eg xwA5x+6pOjn/Ve05az0p1cqr8lwL+qRY3oJjth83Lf1MOnxkk++XftUtXYAG8JuQXXxC ctQxr5KV6G2L3fWKOxWsFsi3Z30GgigohsVnBio9pvHc1ShoLwf/tGyI06fW+QhLj9PT beUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=rIl3WjDe; 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 p8-v6si105402plk.642.2018.03.13.06.37.43; Tue, 13 Mar 2018 06:37:58 -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=rIl3WjDe; 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 S1752787AbeCMNeJ (ORCPT + 99 others); Tue, 13 Mar 2018 09:34:09 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35572 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932664AbeCMN1G (ORCPT ); Tue, 13 Mar 2018 09:27:06 -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=ox2sTRQ87PNUtSRGfsNF7BbgSHI71IODEwo2d5bJ3rw=; b=rIl3WjDeEoWSpHmdyAtxPRqoz epGNBIkAJdwpIuqtl+iE7cLX2h4S0FCDuwzCDCGWxJqDJ5WGdWBEo2MhYP2IIUu6DnJqoC2zvXZcj Xp+LQLtlPyjXqwPaUagH31tqv4tjx2xp0CWFuzzf1ZPr4KippZfrDQ4HZd8cNDdszzzS2Js48sZOm 4R2dKVYgPpOPWgaxllIeUjbt+diz+OEaudztVRYnOsgPnXrf3YYDBxbeE2Ewacz8P/hnkmqSmBVSF 8RFv1A2XBYAhC+4w174lDqWv8AVh12LLyJzQ5vlX27kY32IGAZcXAvgbkZPwNzL89tOVSLyyCInS9 WJfHgPc8g==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1evjxI-0004m4-Vx; Tue, 13 Mar 2018 13:27:04 +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 52/61] shmem: Comment fixups Date: Tue, 13 Mar 2018 06:26:30 -0700 Message-Id: <20180313132639.17387-53-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 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 707430003ec7..6b044cb6c8b5 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -743,7 +743,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, @@ -1118,10 +1118,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 @@ -1187,7 +1187,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); @@ -1866,7 +1866,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; } @@ -2478,7 +2478,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.16.1