Message ID | 20181115154738.GA27932@jordon-HP-15-Notebook-PC (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D4E621747 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 15 Nov 2018 15:44:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C51872CB6E for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 15 Nov 2018 15:44:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9BD62CBA5; Thu, 15 Nov 2018 15:44:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96B962BE0E for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 15 Nov 2018 15:44:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 886466B0493; Thu, 15 Nov 2018 10:44:04 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 833196B0494; Thu, 15 Nov 2018 10:44:04 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 74A8A6B0495; Thu, 15 Nov 2018 10:44:04 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by kanga.kvack.org (Postfix) with ESMTP id 3598E6B0493 for <linux-mm@kvack.org>; Thu, 15 Nov 2018 10:44:04 -0500 (EST) Received: by mail-pg1-f198.google.com with SMTP id 202so12602197pgb.6 for <linux-mm@kvack.org>; Thu, 15 Nov 2018 07:44:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:date:from:to:cc:subject :message-id:mime-version:content-disposition:user-agent; bh=pFA19XQqRIOonXczeaJc1JMDfCxsc2SPHw+vTN0jttk=; b=EsMpERkzsuP5WcX62hAhLKKuUH22O9iFhxSWW6xbP+Z5b8zFaPoYm44ERsV02WLu7j CotXZl9qfAFD7IzxrY2xxXE2JLscgMNBTmsi8nt1+f0GRSoeQ0CvvGNBXDwYTg2a11DR izrgvGLlH2oQZh5XsdlhmRD+pFVW1h37Ij2XneNvfehpluViEZeiqZtTwLniqtqaKn7L CmEHsxHIIwoubzpAy7qRDKPDFu4aMtc90hFBS+H+uIEceMNQIaMQvL+6wfBRTUd6TK4p 4KXElZNZ0KckhaZfSZX/Tbx8eTmHB6aq7g452Duv0muKzu+a6dW+1gnAilWl3D6e9shU w9kg== X-Gm-Message-State: AGRZ1gJE6wBF8Z8RVeBOrpwATdD/6U7bAnswBtpk9gSG319tjAEpVp/S e7+7OLVDmNXwTymC8b0OcQz2PKzHoVMEJmt6dhGC/Kw41N2gq2CGEenGrmcKA/KtQaWlugdpjfA 8R4VB9Odotsqsp5cwE5eUzjco9vJ2tG1BQ195AdQqCZ46rAF7U/jXU76kz6N014L24nTP2IkqZo jJPopIAyNqQOwOtcKMU1v/+0efVe3LSw0sQiKlbrtZv226l28FmvJJ+F2694VOWYOnXVdm4BTG5 D6vvFOCgQj1vcOpBuaHmc/8XVr/TmTSlkLWHVQkCNStpwKuB0/Kyr2S4StxkcC+WBHaykkRO8tJ BWuCtCuhPC94ATWgrrjSDXShIsbWTILtPqZUqHWGkdx3eJOq3PUNFx4KOAMvnnXCbZzTKEEOdwn S X-Received: by 2002:a62:2c16:: with SMTP id s22-v6mr6901308pfs.6.1542296643874; Thu, 15 Nov 2018 07:44:03 -0800 (PST) X-Received: by 2002:a62:2c16:: with SMTP id s22-v6mr6901249pfs.6.1542296642739; Thu, 15 Nov 2018 07:44:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542296642; cv=none; d=google.com; s=arc-20160816; b=jciZh+x5tovxJvqAGwTVLX6W6VQ6NwhqrPWcM36WM/h2JjOhINvrcm1Tmm0vCMpC3W jDIGVk2CMYkiFFWViXS7xo4PniuTKrWD6FjLyr6fgui8cTdrrOr3MKLi+nrFrFi8hePe YMn+aWT5uQTkAY3nBYhVidpxs6JKqRJ1WYdYUBqz9SdN3Z1zawdHj/pWgMcN/54Q4JPK uiSeGjXtjJajWmUpw/T8q1YYp4nAnxxg2h+II7wZ9j5LLFTmLRSkVpo9RY4OTev7SmGE 8m/GrU2WJFDN7XKx35P31AJElZIatWAdJc88BBaBe6b65N4FRfWwxRi/PRORr8w8RB6Z ovDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-disposition:mime-version:message-id:subject:cc :to:from:date:dkim-signature; bh=pFA19XQqRIOonXczeaJc1JMDfCxsc2SPHw+vTN0jttk=; b=TajGMrzflObsz17WL5f0FfRfHUULYMpPB9YIZGPOksjTJX9APLd0ojwmw3NXlxh/KI NKf951gfXbjh9kcpCMknyTZGZuA28IwBHdGDSgpAMs5UM3SpN80/O4luZwZN+b0mQ/FB D+ua+ji3IIvpfcHEmgc4kloYL+e/gzF2N5bBs4084lhSXf+pB8TyBBuDTKiztkgtHQFp Agm7k1jzoAbLglRhtfABAYp/2EUvGIXBOIztFfkqgDoTLBT09bhCl8rT2Zt2W44HSY6p 0AWzUIwzYJTvC/5SOIUSgL6GztT8OZq4qyoze40YnlrD7nuhh6JhmvXNDWvfxRPwjubn 7Ohg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=epRwUqy7; spf=pass (google.com: domain of jrdr.linux@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jrdr.linux@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id cb11-v6sor32699958plb.57.2018.11.15.07.44.02 for <linux-mm@kvack.org> (Google Transport Security); Thu, 15 Nov 2018 07:44:02 -0800 (PST) Received-SPF: pass (google.com: domain of jrdr.linux@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=epRwUqy7; spf=pass (google.com: domain of jrdr.linux@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jrdr.linux@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=pFA19XQqRIOonXczeaJc1JMDfCxsc2SPHw+vTN0jttk=; b=epRwUqy7htlLmwiI24Igzw3C2oNh3YVt5/KrBuU7kZgm/q5KyELQgGneXGQT7KYl56 a3RPp7G+9jGSYocoRz61BXFqCxjj5kjQ3gfSEKVVQLgHz/flWOteAimfOtCvbbgEYkG8 CcSujgQPd2yZZI23W0wET8wDeoaj8n3Nf2JZsVNdKJhDeJv6vb3FP/jiMdHqHt2CJln6 mAZJudFpETbCbNZLF7yseNL0Tskx0lPoRljbm4WuBW6I61un7FVqA0Tgcq3pBkkrXTrA xkOW8ZMIMv2ZW/Lf/Exdd1gaUYmfX8+qHWP7IGSrnJsyltqvS2md833QBVWTLl2eXkdi kXDQ== X-Google-Smtp-Source: AJdET5e2nV1ILwV25QmCQEcQZKLe372AfAKrda1ioGmmzBYIfWQwY2V+kpm1Wxo55YOkrsox1AToPQ== X-Received: by 2002:a17:902:560f:: with SMTP id h15-v6mr6963057pli.160.1542296642414; Thu, 15 Nov 2018 07:44:02 -0800 (PST) Received: from jordon-HP-15-Notebook-PC ([103.227.97.233]) by smtp.gmail.com with ESMTPSA id x23-v6sm27487376pfm.126.2018.11.15.07.44.00 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Nov 2018 07:44:01 -0800 (PST) Date: Thu, 15 Nov 2018 21:17:38 +0530 From: Souptick Joarder <jrdr.linux@gmail.com> To: akpm@linux-foundation.org, willy@infradead.org, mhocko@suse.com, stefanr@s5r6.in-berlin.de Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux1394-devel@lists.sourceforge.net Subject: [PATCH 3/9] drivers/firewire/core-iso.c: Convert to use vm_insert_range Message-ID: <20181115154738.GA27932@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Use vm_insert_range
|
expand
|
diff --git a/drivers/firewire/core-iso.c b/drivers/firewire/core-iso.c index 35e784c..7bf28bb 100644 --- a/drivers/firewire/core-iso.c +++ b/drivers/firewire/core-iso.c @@ -107,19 +107,8 @@ int fw_iso_buffer_init(struct fw_iso_buffer *buffer, struct fw_card *card, int fw_iso_buffer_map_vma(struct fw_iso_buffer *buffer, struct vm_area_struct *vma) { - unsigned long uaddr; - int i, err; - - uaddr = vma->vm_start; - for (i = 0; i < buffer->page_count; i++) { - err = vm_insert_page(vma, uaddr, buffer->pages[i]); - if (err) - return err; - - uaddr += PAGE_SIZE; - } - - return 0; + return vm_insert_range(vma, vma->vm_start, buffer->pages, + buffer->page_count); } void fw_iso_buffer_destroy(struct fw_iso_buffer *buffer,