Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp606337imm; Wed, 10 Oct 2018 01:04:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV62iJqkhF6+FZz+alrelwYvR8MP/O2aId53c6Lc/lozrTKIXMngc05FMYtmrWAbHfMg8dEpu X-Received: by 2002:a62:9b9a:: with SMTP id e26-v6mr34876940pfk.181.1539158647159; Wed, 10 Oct 2018 01:04:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539158647; cv=none; d=google.com; s=arc-20160816; b=O6WYyI85sK6hZ45xi6XAv7pDS4gTud70LvnN/pagb4us78A1MYxo/qCAi2ZwUSUbKZ HGesZHXeUz0lIPmU7/ihNxaxZeS9pNVkiEs5Y7h17WuNuPX7RWySUx6i+lgJNmNjaBnC 36IvBYwhx9PbOkZjE/F2g5AKbsJEXId8pIJ6ZGYwNSjOH8IEUPEw4+KJuYmuSW6p5NRe 6xaYPXnE3GqdQIbsJCXC79MBbnrobMaoGbz+4yK69Z2hAEOA9majvCdd/X0/vLGJGqxD 4VXo6u51YKL5YpZabmmSbVHjqdEqSxprqKs52n5z6ERZDZsMAbuE4YmCFRQjjBYAKLq/ eXmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=2jdajWlmwd9aao50qBkws2DP4zKsxnNwU2ugOG1lWWU=; b=WTUAfeGR6zVu9cTPofbtcDajMbKF2sXLcluOy+t1DXV5hwLh+gZEaI/zQEvmuRU/+E MacADzYN9qLPBtAcReDGrzTXGFvrbgtUI6uMdib/uR7vwiIBwq1cxjG7xDfgs1szp3iZ OdeNjVhrB1hFKhlQcm1YGijAjm22ajZlfDVgpJHmlEGATMuDH2G9v0PsS4SKGpgg7f/E PJikiQWzkJhaIciPmPCfBIlPgCNqXoN8lTDMvvyi2YSMNwVyokeBsIcxZNHKBbdkPmTC SMUCoJiYzN4rU3Jtf9GjoTbfMd16nPkSWeUpn7JhTiLeE18ddKe1tR9EleGPdTrzx6K7 FJBg== ARC-Authentication-Results: i=1; mx.google.com; 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 v4-v6si24249653plb.400.2018.10.10.01.03.50; Wed, 10 Oct 2018 01:04:07 -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; 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 S1726701AbeJJPY1 (ORCPT + 99 others); Wed, 10 Oct 2018 11:24:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:36956 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725837AbeJJPY1 (ORCPT ); Wed, 10 Oct 2018 11:24:27 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B2375AFD3; Wed, 10 Oct 2018 08:03:26 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 2016F1E3617; Wed, 10 Oct 2018 10:03:26 +0200 (CEST) Date: Wed, 10 Oct 2018 10:03:26 +0200 From: Jan Kara To: john.hubbard@gmail.com Cc: Matthew Wilcox , Michal Hocko , Christopher Lameter , Jason Gunthorpe , Dan Williams , Jan Kara , linux-mm@kvack.org, LKML , linux-rdma , linux-fsdevel@vger.kernel.org, John Hubbard , Al Viro , Jerome Glisse , Christoph Hellwig , Ralph Campbell Subject: Re: [PATCH v5 2/3] mm: introduce put_user_page*(), placeholder versions Message-ID: <20181010080326.GB11507@quack2.suse.cz> References: <20181010041134.14096-1-jhubbard@nvidia.com> <20181010041134.14096-3-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181010041134.14096-3-jhubbard@nvidia.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 09-10-18 21:11:33, john.hubbard@gmail.com wrote: > +/* > + * put_user_pages() - for each page in the @pages array, release the page > + * using put_user_page(). > + * > + * Please see the put_user_page() documentation for details. > + * > + * This is just like put_user_pages_dirty(), except that it invokes > + * set_page_dirty_lock(), instead of set_page_dirty(). This paragraph should be deleted. Other than that the patch looks good. Honza > + * > + * @pages: array of pages to be marked dirty and released. > + * @npages: number of pages in the @pages array. > + * > + */ > +void put_user_pages(struct page **pages, unsigned long npages) > +{ > + unsigned long index; > + > + for (index = 0; index < npages; index++) > + put_user_page(pages[index]); > +} > +EXPORT_SYMBOL(put_user_pages); > + > /* > * get_kernel_pages() - pin kernel pages in memory > * @kiov: An array of struct kvec structures > -- > 2.19.1 > -- Jan Kara SUSE Labs, CR