Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2047196rwb; Sun, 14 Aug 2022 19:57:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR4P0rL4Xbc2OLiwlkincK+PdxbREBSOzU6M787fLIDV9dOq6lAnpPrqqbN1xVnbxjKl+28g X-Received: by 2002:a05:6402:27c6:b0:43d:6fab:146e with SMTP id c6-20020a05640227c600b0043d6fab146emr12725909ede.376.1660532254436; Sun, 14 Aug 2022 19:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660532254; cv=none; d=google.com; s=arc-20160816; b=vtUeTgCTBkK5QF3schwtnjHxqwVVvPU9cVPQVjxzJPqP1WxcjBWmVdqfujbKLJkZeY oUZQdGwPsmqaVKZr5rYcfv15sddFv3Uq2fGWsLGLmwcaWRTUc89CQeJHMHglLWiyFZN+ MqgZ2ukJ8WTiaC1THqKntKRMuw6ofsyo2dlmDqeitRXKwGKHrEjojcIOmg40vmyWIBMm mwAd09ESJ3BLr8AhjaUcCldJ4QrErROc2aL2T6ciQMZw1yFFdC8WjoxXfBYx6zoxuvep 37TtinXIuX4s4E+viDFYhvg3u/XgVW97DluO1j8eoi711IEhEgm5Gr/pYFTaoIXIhFy+ 3a/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=97tyCh/hztKpfXO6u7xzBaFIppY93MdOrm2n8zHUB64=; b=Av3TQJAUcFbwXk4IJYj6wCnaUO+S9Mi3KBprixzWoHSUV9nEksX4zFzBWiC5j/yOmy QXvP4G5UlUzmfxi3Z0I1CZg7ZJGGY4iikgnKFEo3e+UnJz/985W6R0NSmfRHDavwo9WX jd0WyT5dKbcJlXTavAudcgctgH+4i1/vFqYmOqu5+eI/2JwmN36I6lqG0PgnvaAR57bG 30HswtXUzPcNH7Bv77sEQiQB5iCGfJeqVmCxA+bNGZh6gyiPHwCqyZVbEel3gNn9ProQ dOxKP3caTcqHfNN5BfQ/gh67RR+F8wyBs3/datp+5fx619WGFyPtS3uolhNpj/eeBaxd 9NvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=H8jdlmhw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk12-20020a1709077f8c00b0072ee27ef788si6828080ejc.838.2022.08.14.19.57.08; Sun, 14 Aug 2022 19:57:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=H8jdlmhw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229766AbiHOCwz (ORCPT + 99 others); Sun, 14 Aug 2022 22:52:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbiHOCwx (ORCPT ); Sun, 14 Aug 2022 22:52:53 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44DCC13DF1 for ; Sun, 14 Aug 2022 19:52:53 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id s5-20020a17090a13c500b001f4da9ffe5fso13285265pjf.5 for ; Sun, 14 Aug 2022 19:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=97tyCh/hztKpfXO6u7xzBaFIppY93MdOrm2n8zHUB64=; b=H8jdlmhwkxVG0lk4LDQB/bJj0Mm+afebg1AZ+jF9cTIqiY25bexB+7F6sn1382nDE8 XyIT1Ntt+lpGJ7nC0kJnjcAp3mg4cajjFMTLfESOT4PWfl9tFNPgMF/A+h3/Nf36TuyW CDm+Mg67fRHXAm9tOxDBvyMhaRe90aN5VMq6I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=97tyCh/hztKpfXO6u7xzBaFIppY93MdOrm2n8zHUB64=; b=jQek+iws3SX5J0WROa+52l0q58mpzObvLFTsRYOl4CO0dw/rEXJSBC/m8LiNE8s40/ rYRKbOtnUtautHVuB3aoxW/9qa8h2BfiqyyAWrK6cVh0f4COYxinnzs+LnUTSuOggqzT j9dCPqOjMNLoSc00pEDajcjyJmC6q0DIwod62Naq9MxTabg4ioXjO/5Zdm8vTIvdVdZs A0fY2d0K8H9kZpX8Fl4oo8aIKcLoqYgbpLAZJbcbag4Mgm2c2/wHkY0EK/DJtRh7ebAL vY3o+7slTUWBwraTHNjMI7vU45QiIPBd1ctfDczeZIRe322P5KH1zuioqAfFznh5amt1 4v8A== X-Gm-Message-State: ACgBeo33g1NaLyxNUOTQGlN7VzGU18kUjKn6HlqhVo4/J4rR042QgfRS YQ4sb2l6wtKiBgW+ZfTxiE+2m/ulybS1lw== X-Received: by 2002:a17:90a:640c:b0:1f7:6ecf:33b6 with SMTP id g12-20020a17090a640c00b001f76ecf33b6mr25658771pjj.3.1660531972720; Sun, 14 Aug 2022 19:52:52 -0700 (PDT) Received: from google.com ([240f:75:7537:3187:110b:946c:84b2:7c95]) by smtp.gmail.com with ESMTPSA id s1-20020a170902a50100b0016f0c2ea14csm5989566plq.275.2022.08.14.19.52.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Aug 2022 19:52:52 -0700 (PDT) Date: Mon, 15 Aug 2022 11:52:47 +0900 From: Sergey Senozhatsky To: Alexey Romanov Cc: minchan@kernel.org, senozhatsky@chromium.org, ngupta@vflare.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel@sberdevices.ru Subject: Re: [PATCH v1 1/2] zsmalloc: zs_object_copy: add clarifying comment Message-ID: References: <20220811153755.16102-1-avromanov@sberdevices.ru> <20220811153755.16102-2-avromanov@sberdevices.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220811153755.16102-2-avromanov@sberdevices.ru> X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FSL_HELO_FAKE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (22/08/11 18:37), Alexey Romanov wrote: > @@ -1564,6 +1564,12 @@ static void zs_object_copy(struct size_class *class, unsigned long dst, > d_off += size; > d_size -= size; > > + /* Calling kunmap_atomic(d_addr) is necessary. kunmap_atomic() calls > + * must occurs in reverse order of calls to kmap_atomic(). > + * So, to call kunmap_atomic(s_addr) we should first call kunmap_atomic(d_addr). > + * For more details see: > + * https://lore.kernel.org/linux-mm/5512421D.4000603@samsung.com/ > + */ I'd drop the link part, Emails are not documentation, kmap_atomic is documented in Documentation/mm/highmem