From patchwork Mon Dec 21 04:28:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 11984203 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 751B5C433E0 for ; Mon, 21 Dec 2020 04:29:20 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 90D4822CB2 for ; Mon, 21 Dec 2020 04:29:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 90D4822CB2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8707C6B005C; Sun, 20 Dec 2020 23:29:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 822316B005D; Sun, 20 Dec 2020 23:29:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7364B6B0068; Sun, 20 Dec 2020 23:29:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0091.hostedemail.com [216.40.44.91]) by kanga.kvack.org (Postfix) with ESMTP id 5CF5E6B005C for ; Sun, 20 Dec 2020 23:29:18 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 0EC50181AEF0B for ; Mon, 21 Dec 2020 04:29:18 +0000 (UTC) X-FDA: 77616009996.15.wrist77_070198427454 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin15.hostedemail.com (Postfix) with ESMTP id DB0F91814B0CA for ; Mon, 21 Dec 2020 04:29:17 +0000 (UTC) X-HE-Tag: wrist77_070198427454 X-Filterd-Recvd-Size: 2792 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf48.hostedemail.com (Postfix) with ESMTP for ; Mon, 21 Dec 2020 04:29:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=RtEAlOpEBEbxdKJENf0X8/PxK1k1dkBAwswBPT8os68=; b=ZwHVTJld6G4brrf9x0h75RubyF kDs8i0fpPe8VtVlqC7LJ10KwKicGqJy7hYvTG6IW2dSBCGYGC9dswQY8mFdvBfcp8mXekdONTOsSm TDjgHvN4I2wSsvGCIl7Y1OwN838pqfUPmot/CSQX+nk0eL/+KXT82mR1HAqliBvszwaYV8T291HI0 W58Hrbz23+azbYCGd3j+XW9+iuFnP5Xv4a8acd6q7Yy8aJH2+8S5zSQEssaLrzaQVOjqobRM6wDvJ 82bS63VqLMd0TbdL3HGO8bk6f049Y3kVNRXMxyTVzwa1ur4yXdxYc0iT69SiUZ9nZYe3K2KIl6tra dc4cnadg==; Received: from [2601:1c0:6280:3f0::64ea] (helo=smtpauth.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1krCoY-0002Rc-4o; Mon, 21 Dec 2020 04:28:55 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Weijie Yang , Seth Jennings , Seth Jennings , Andrew Morton , Dan Streetman , Vitaly Wool , linux-mm@kvack.org Subject: [PATCH] mm: zswap: clean up confusing comment Date: Sun, 20 Dec 2020 20:28:48 -0800 Message-Id: <20201221042848.13980-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 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: Correct wording and change one duplicated word (it) to "it is". Fixes: 0ab0abcf5115 ("mm/zswap: refactor the get/put routines") Signed-off-by: Randy Dunlap Cc: Weijie Yang Cc: Seth Jennings Cc: Seth Jennings Cc: Andrew Morton Cc: Dan Streetman Cc: Vitaly Wool Cc: linux-mm@kvack.org --- mm/zswap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- linux-next-20201218.orig/mm/zswap.c +++ linux-next-20201218/mm/zswap.c @@ -1022,10 +1022,10 @@ static int zswap_writeback_entry(struct /* * if we get here due to ZSWAP_SWAPCACHE_EXIST - * a load may happening concurrently - * it is safe and okay to not free the entry + * a load may be happening concurrently. + * it is safe and okay to not free the entry. * if we free the entry in the following put - * it it either okay to return !0 + * it is also okay to return !0 */ fail: spin_lock(&tree->lock);