Message ID | 20181202062156.GA3131@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 3F3E11579 for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 2 Dec 2018 06:18:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DF2C2B11D for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 2 Dec 2018 06:18:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E5502B12A; Sun, 2 Dec 2018 06:18:16 +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,RCVD_IN_DNSWL_NONE 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 A6CFF2B11D for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 2 Dec 2018 06:18:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D21FE6B61FB; Sun, 2 Dec 2018 01:18:14 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id CAAB06B61FC; Sun, 2 Dec 2018 01:18:14 -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 B4CED6B61FD; Sun, 2 Dec 2018 01:18:14 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by kanga.kvack.org (Postfix) with ESMTP id 6EEDF6B61FB for <linux-mm@kvack.org>; Sun, 2 Dec 2018 01:18:14 -0500 (EST) Received: by mail-pl1-f198.google.com with SMTP id ay11so7495253plb.20 for <linux-mm@kvack.org>; Sat, 01 Dec 2018 22:18:14 -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=YVD5Z9lfh58z5+d5iqx40A6MewG7h6466HSed98qNYbbqxmuO3Ms6Z0C3U5k0Squqo CkLYmawtnPoP+Em3yxVS94dsqLvIgTeBZbSzeDff4PSehGftxPgkEfeHh6uF3T9ubijd fjQeZ3ZXL6LTiRadk3hhJgk0CRvd4f6zj27sOB5DFkycrIvdfPySWWvNWxeRq+4SPKZs /bph9LpOgLEZlbE5VHnJ0fNr8DyCgHdyJbqe7SpZAT+Ibin7GLT43j7Dnga65VbZZAsI oSGTo52oV6UviCASHwNLP4Y574Tv95/g7UM9VCDFV4DtOIY+BaJYMg705TJzBBqeoidH E9eA== X-Gm-Message-State: AA+aEWaGr7pgHTmX7wSHE427PtXmA41hhx1KrfzErbW7NsnlfWGS+1ba kI32xQLJ5E3msy8ETy15Z5dlLEvWjVzXpEzdmUabPmK67SbPOuQym8hdAw26hJjLZWUl0Q9BCUt opVn4Mb3yfGemJCoRDxpZAOKfnT88bG9S3R9dlb+HVMxdtXzEEN1F4g/IWBmMu2873XYT10OFTs B7+U+JHuDiJ/VlgW6KMsn7ZILDUlJdYUftA5qHxMrCTyumllz6BJzOBobsi+zOSAn2D6eLgFJ0L 5Ue9zeQxt4OK6/q0ZtyhvYkHNuzqB4+3BSSrQflsTCro85ECI4rWy57HWPeMVFPiikooIhc8whG oX4x9zdVBQZcoALnOPDNdOsm9+aY75XbIchJGnsxd03FDuU2AITEHGepRfnANWUrK+3v4qVCG9o K X-Received: by 2002:a17:902:346:: with SMTP id 64mr11796355pld.337.1543731494077; Sat, 01 Dec 2018 22:18:14 -0800 (PST) X-Received: by 2002:a17:902:346:: with SMTP id 64mr11796342pld.337.1543731493505; Sat, 01 Dec 2018 22:18:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543731493; cv=none; d=google.com; s=arc-20160816; b=gAymoRsuJQOodqerYnZbvyGCtPaCjkyvDaMXCeme1g/OY8aRxyxsoIXXIPubUwiGJh fCVHN/BqIWVhnIaNJCYRWME26A/aURl/+wupZkU/BTd/7/y739d1xtFnUfwbTVWsDZQr yXYJXxlBOxE58c/Al87OXw7OQ1Vps2DfB1s31I6fYweQEGaR80aI5tCm02Tx+VGqk6eE UVDAc8Zda8lctf/U++bxiXUI1S17DY4xgPO3SOyeGPZxrIfUj/8+lxcpSBDY3ASD0IPo axyoyOzg3pia0Rkn7PjBR5kQoSyyoPHuXFZJ1zjQoOFm9bixVzv+aXFNDswf92Srg3Aj 1qmA== 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=AC9PLpTtr3YCKJSZ+2wHmdW+o1K89q02j1+FGyybcJvfeZponZ0968urrx494IjXUm +jGq/scxuISNMsIjvrcCYMjASrJx9cjn6MpIer+984BxWiGgrN3DST2JSTltczS4v664 W7FDwqjjJn99nZgatjUR1lHbiggDSVq9OQmSYoGyKNfAZT/s/T0cZsE07dq8iI1K0u4K 9amsm0MIe0J8DgOPSNiPSoKwWU46PQy4IUF3mLiLsRRdy3QDZBgmS0EYIai2CxkaLzCZ xhKri9yFnPYMy2m00QrRLrPc4UOVg0bRTrulIJfF/+VkUFCuZ+IupiDS4FYko7w79XKG 0hbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ob52eAyb; 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 t18sor10124624pfi.23.2018.12.01.22.18.13 for <linux-mm@kvack.org> (Google Transport Security); Sat, 01 Dec 2018 22:18:13 -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=Ob52eAyb; 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=Ob52eAybZ+ukSyGdY8U/Z1jdhXxFQFle/dMi4Et2nQndtm7MZ2i4ONnKsVDEIcjDDz 9W38WqOW1p9mt0J7xkQxfLmLL/jnq1/LcrLmoOqnc9m337jYRgsykPHqvssdhQ8pmZqy AcyrBFinNSivTuQmUI01wz1gKLQW9G1svEowGTi2+SAQF6CW3SbPSPNlOgF5HsoRXG/R 9K9JQ52ZvaqN5BHcgkhczNdO8IQ5qGjOakvBGCY0Sm0g3u6hbovABd7E77bu2Yv2l4eb Ba8iBaRv7cN2h5YB8JO3+4IihJv60g16Rfz+y3KC66wo+3y0mJ60ov/ncoRJ0hAIFPOQ x9gA== X-Google-Smtp-Source: AFSGD/UHCJICHgiE0m052Ybq6CARBcS+P92LNUcrBDatOdJIiC6ahi3tnqCNt66ImpC9ArLD+LG41w== X-Received: by 2002:a62:546:: with SMTP id 67mr11166313pff.99.1543731493182; Sat, 01 Dec 2018 22:18:13 -0800 (PST) Received: from jordon-HP-15-Notebook-PC ([103.227.99.148]) by smtp.gmail.com with ESMTPSA id g15sm46055783pfj.131.2018.12.01.22.18.11 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 01 Dec 2018 22:18:12 -0800 (PST) Date: Sun, 2 Dec 2018 11:51:56 +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 v2 3/9] drivers/firewire/core-iso.c: Convert to use vm_insert_range Message-ID: <20181202062156.GA3131@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,