Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp597781pxt; Thu, 12 Aug 2021 05:40:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwllcMHtqWdFKGkn7ya73DO8yzltKxFQpg+vviJroJmOiuoPi2j/zRy0gB+w3yKbdlYquiP X-Received: by 2002:a02:a795:: with SMTP id e21mr3647146jaj.103.1628772003604; Thu, 12 Aug 2021 05:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628772003; cv=none; d=google.com; s=arc-20160816; b=ecb63pWCraZArIUYlrjlE+rbFu8prjfJ1XebfH9Yb7Rj667cikc/90kXJqV9Hg4Qjz WOBEftAKX3Kn+4UDSQ6N7POFIO1P1NQ3lg5Q5oTeGGG+BnPczurV45ZK25UNhiRe0MGV kuh2+zJ4uySdD4UxJIELmFzPIx/LQXyRj07Jwz+YkdXx3mXfZ3HRWDMxCLYgHERnZcs+ 1wMVHNPK5Wto95dI/WrTGBmaLupKP5AYg4HicKsxZcwVrgNg+IyAHTxgV/QAzg8DTD4U Ca86bBPXA9G9wZG+B3/594tneo2NjJ48zyZojFLU4PVTDS9e9pbsf6/lDyVKkz3NEOHz awQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=6/GPY4+bapPOd1ChiVHOPE1vdPBIG+lFx1zYMMhhGLc=; b=QsGTZ8zP28+mLIlkbgqtGtaQOybFaEHP229myeOwWUFohByGIQkSy4tIdZq3PCmATe 3JbWwuR62czqS6cxDOsMnSMmkTd7R+LgjG4dq8OW0Q5j277B92TEY+gDgjqxCJUHe490 96O9CHE8Mm3Tf1eWuX0mZSWFf2Nx2hDc61/lMVkgNYPLq3P1y8Ew/3xnd1krD5Df0WmM LtlXWt12tj5eJrqvwb81WCsx+geTx1iXneXDFWpD8H1zSt+5A03JHSIyjkvwCmZNjEop Q1mcJ/Zto1H/KLsILim17oaQBTEmHzikESRf1cqzNAfyXWZA2KaPOa9/PHFIhNC3LE7i 9xQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=f+WYP7PF; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=Dq4VDVt1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a24si2972524iol.81.2021.08.12.05.39.50; Thu, 12 Aug 2021 05:40:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=f+WYP7PF; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=Dq4VDVt1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237131AbhHLL4z (ORCPT + 99 others); Thu, 12 Aug 2021 07:56:55 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:51118 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236425AbhHLL4v (ORCPT ); Thu, 12 Aug 2021 07:56:51 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 77A7D22201; Thu, 12 Aug 2021 11:56:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1628769384; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6/GPY4+bapPOd1ChiVHOPE1vdPBIG+lFx1zYMMhhGLc=; b=f+WYP7PFYMC/dl/+RJ0fTYpSqBVqngL0S1o8IWPwpEzsBmK+BiGh/mC9VP+KsPPgKLfJgD uZdqIhPLRLrBZ18yTah9m6BzxgsiwKI4S+sle5OgTUh75Ky3Z3szoy2121k98eCNIbLLl6 U0B03c5rwl3SZTqPRDNSUzqLwwQN2qk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1628769384; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6/GPY4+bapPOd1ChiVHOPE1vdPBIG+lFx1zYMMhhGLc=; b=Dq4VDVt1Ac6dV6iTN8VeZ2Kop/ALi3KiMr4y/diLRrzvcL9rkfDM/6TkI2Co6f22Y55Xdt oAJESFNXwfhfqhCg== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 626F313A90; Thu, 12 Aug 2021 11:56:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id xVpPF2gMFWHAPQAAGKfGzw (envelope-from ); Thu, 12 Aug 2021 11:56:24 +0000 Subject: Re: [PATCH v14 062/138] mm/migrate: Add folio_migrate_copy() To: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-63-willy@infradead.org> From: Vlastimil Babka Message-ID: Date: Thu, 12 Aug 2021 13:56:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210715033704.692967-63-willy@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/15/21 5:35 AM, Matthew Wilcox (Oracle) wrote: > This is the folio equivalent of migrate_page_copy(), which is retained > as a wrapper for filesystems which are not yet converted to folios. > Also convert copy_huge_page() to folio_copy(). > > Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Vlastimil Babka The way folio_copy() avoids cond_resched() for single page would IMHO deserve a comment though, so it's not buried only in this thread.