From patchwork Fri Sep 7 07:39:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Sandoval X-Patchwork-Id: 10591787 Return-Path: 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 EBCBD6CB for ; Fri, 7 Sep 2018 07:39:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF1352A63B for ; Fri, 7 Sep 2018 07:39:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3C3A2A659; Fri, 7 Sep 2018 07:39:44 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable 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 79CFD2A63B for ; Fri, 7 Sep 2018 07:39:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D0AFC6B7D2E; Fri, 7 Sep 2018 03:39:39 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C3E616B7D2F; Fri, 7 Sep 2018 03:39:39 -0400 (EDT) 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 B08436B7D30; Fri, 7 Sep 2018 03:39:39 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by kanga.kvack.org (Postfix) with ESMTP id 604B46B7D2E for ; Fri, 7 Sep 2018 03:39:39 -0400 (EDT) Received: by mail-pg1-f200.google.com with SMTP id m4-v6so6821318pgq.19 for ; Fri, 07 Sep 2018 00:39:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references; bh=ozha6QqmfT5JrU9j0wVw3+1nSMpz8bliiwskTMqxkvk=; b=HTv8kWz+Aqsu3n7jJeKsJU7NkIHrAlKnVL51ia3sq4/6CxZ4q1NFswIGktSIrHfudB 0B94qFHAV/n7djefO/KWgknX32wX0HTjOR6w9AnvUaZSX5rmcy0jGkfjv/9P3OCWyKt7 NKtEFDSmaumKddHF4nQqYFhRF1GpbWu/+/DC3wkM0799DKjNbcPK1j3ldpPpaTmjqPDH 6Ojirwqp0jEntdc/uBDWe92RTnkn6FkgnZ5wSxJOiUNHteD1rhhpBraHdNH7TfPKpNhw MW62oNTuioTRWgKDbm7yqJyS11uCtEi14ZIC2IVFzJt6rMKrzID7MzKSuZZ48pQs8CrY spnA== X-Gm-Message-State: APzg51Az/DHi0kMPcNM7KXZOIcucTsK5JO/GRlYsTBDLXg4jnRPIMG1D nv+ggkSY9FtBsMZpdd9dqJxlP3BD4QiKf5vqiS5PRWMKaB59aTyfNhNpXOsax59jmCB2zDm73sg WvFNpJuRv3ofX8mNRy3IFFgFznKg9FFPhb3IaMCi0In4tQBDdDC9lM2w3pzrZpJlqEMCJns21Lh yIAw6N9meNRkOdnrgWp9H/yfR0AkZo5goyQJ/nUGJxm9t2ePlt8bnRlp+TDb7E5qh8YO4aoHj21 NDSKbhn+DxE576JMGl3jRS7UoOeAizm6AANeStgPrxlKIebIhGR5q1fH2UACvqLFHwZ3w0bqxuj pjO96HLA6eGvjxyaFzLKsBgBEhUgqwpttEzasyjAQABCWp2C8grvAOgXLuUXLwpY1DvQy8/tEAE l X-Received: by 2002:a63:ab0c:: with SMTP id p12-v6mr7009335pgf.190.1536305979085; Fri, 07 Sep 2018 00:39:39 -0700 (PDT) X-Received: by 2002:a63:ab0c:: with SMTP id p12-v6mr7009319pgf.190.1536305978407; Fri, 07 Sep 2018 00:39:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536305978; cv=none; d=google.com; s=arc-20160816; b=XdZJeUbQ55MTx3lq8LCWq5vd1SYEEDz2F+l9dKmX0orpKwBC+bdfPwt9irGz+h4lph 0XKRqReL/l+2Vw8DLNIZUpavjzqFK/HTv49xzLE8Cs1BeTQClosgqDrdWg9gwTc1aQeI 57XPCGekfe1dvXxhBOd85JepHS7Is565vTz72rVX2DF1GcIXLhlixHrfxqd0x9hsWQBG Glwi7LxrEBf3ErOv6ucKvGCmc4/bzCxe1n7JQTxcU0Q1UBWniEKXqx2wzxhifySnWjzn QHoLtT2L3V7NGFfde8DTfC9T0yFjYEeps3RYOpYwxY2tk3HIkl/oLQ+iu1RC0L83whRp xxxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ozha6QqmfT5JrU9j0wVw3+1nSMpz8bliiwskTMqxkvk=; b=m5EeKvzoXTK7QxcwmgruKOPRQZF+tn4LdnNCmuJO9xxa4YUNexIahoAvupFQKZUGNJ RYTPtP+ZOJEChjx73gcnk8u+C70mf4wl/eSLCpHX23knFskpoowDcxeXAnQ0BHKKCNS0 OwZ3ajNqnEWrLNvQMps1O9wS+BqNEKYHod8QbwHtB97lIGmDnoDYxdXyzPWBdXUMe5KF U7+gWUQQDqVEiyPu9CVWP2ECxTTqGyQm85JvSfM9ruCC0sDNs9PbUOnQAf/5JLLEmRhi 3Z8suf/MFr3sisHlye51mpA4dsLiOyPa1ItFAvCZCuNQnPWcHvbRP+OZpU/wQtXRaCRJ xlIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@osandov-com.20150623.gappssmtp.com header.s=20150623 header.b=SL0Ru4nA; spf=neutral (google.com: 209.85.220.65 is neither permitted nor denied by best guess record for domain of osandov@osandov.com) smtp.mailfrom=osandov@osandov.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id m10-v6sor1634513pll.123.2018.09.07.00.39.38 for (Google Transport Security); Fri, 07 Sep 2018 00:39:38 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.65 is neither permitted nor denied by best guess record for domain of osandov@osandov.com) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@osandov-com.20150623.gappssmtp.com header.s=20150623 header.b=SL0Ru4nA; spf=neutral (google.com: 209.85.220.65 is neither permitted nor denied by best guess record for domain of osandov@osandov.com) smtp.mailfrom=osandov@osandov.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ozha6QqmfT5JrU9j0wVw3+1nSMpz8bliiwskTMqxkvk=; b=SL0Ru4nAUG80M4Q6RuPg1eXSftKHhUa9quvYWPi96z6XJG1yr4A3ONsLtqZbw92WI9 V1V7MbXlMH54XMMiKPPcKiInZsgouBTuSeYal8/Gxcp/eKTVk5fcda3W2AXcuC8HkoAX yCqGnCxDdN/eZgiFYwI/A1VOpJ/VV7+L6QH0/0YT9MOky4pWohVMFLUY2By/syBadiL1 qId7PElcUxlBujBNjInosydETdU5Ln4iyCx5jS8Pn9nKGXnwAzLmdx1E82hxdLJdTaOF pwblyepayQ+yAcwVygjwbJVYWbBVMQkTWXuQ4sJj1Y+nyHOZHpmIuuRoujLYiWq/0fcn p5nA== X-Google-Smtp-Source: ANB0VdYKJZXmRnl+PeEmhotnNPgxwupVLhpFoLRHFhWS7YdCCdaVdtmoI8fjEjqYN5cvu68QzB0hew== X-Received: by 2002:a17:902:558f:: with SMTP id g15-v6mr6689435pli.38.1536305977909; Fri, 07 Sep 2018 00:39:37 -0700 (PDT) Received: from vader.thefacebook.com ([2620:10d:c090:180::1:904c]) by smtp.gmail.com with ESMTPSA id i65-v6sm16276914pfk.43.2018.09.07.00.39.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Sep 2018 00:39:37 -0700 (PDT) From: Omar Sandoval To: linux-btrfs@vger.kernel.org Cc: kernel-team@fb.com, linux-mm@kvack.org Subject: [PATCH v6 2/6] mm: export add_swap_extent() Date: Fri, 7 Sep 2018 00:39:16 -0700 Message-Id: <6846192edded07fb0cccf11ef37aebd4822275a1.1536305017.git.osandov@fb.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: X-Bogosity: Ham, tests=bogofilter, spamicity=0.000019, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: Omar Sandoval Btrfs will need this for swap file support. Signed-off-by: Omar Sandoval --- mm/swapfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/swapfile.c b/mm/swapfile.c index d3f95833d12e..51cb30de17bc 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -2365,6 +2365,7 @@ add_swap_extent(struct swap_info_struct *sis, unsigned long start_page, list_add_tail(&new_se->list, &sis->first_swap_extent.list); return 1; } +EXPORT_SYMBOL_GPL(add_swap_extent); /* * A `swap extent' is a simple thing which maps a contiguous range of pages