From patchwork Tue Sep 11 22:34:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Sandoval X-Patchwork-Id: 10596427 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 07CE0112B for ; Tue, 11 Sep 2018 22:35:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBA3129C45 for ; Tue, 11 Sep 2018 22:35:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFF6829DEA; Tue, 11 Sep 2018 22:35:20 +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=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 8B2F729C45 for ; Tue, 11 Sep 2018 22:35:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 84BFF8E0014; Tue, 11 Sep 2018 18:35:16 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 7D69B8E0001; Tue, 11 Sep 2018 18:35:16 -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 5DB9E8E0014; Tue, 11 Sep 2018 18:35:16 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by kanga.kvack.org (Postfix) with ESMTP id 1C0548E0001 for ; Tue, 11 Sep 2018 18:35:16 -0400 (EDT) Received: by mail-pl1-f197.google.com with SMTP id bg5-v6so12109799plb.20 for ; Tue, 11 Sep 2018 15:35:16 -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=ZJX7H1ex+4E36Aq6zVKTW8JK5w1ncwY9tek9kuawo6JhNQAzCir0OIj6x+h50moOhV hfz1PwIOzoAOfMzHMNPWBU340XFWmX+hFUsBoxME/+7d0P9WDlXwqzqN4XYsiOyqXy24 HZSVSm3j1fyhd92hDez42oIsRBz9SrmIllBmZg1jJ32bEocrdSSiu4rbJYiWfl/dZjeG 5FXSAspDfChch0JHfOg62cWQPX56CI5GXyzW8+QBv8JLMY6uRtxz/tUcitd20dl0Ivq0 2Tj8YPprdH4DEHFiQhJC4MQxDq8Gz8IBWGUEPZ+/08/GHzEQfe8cY3rXO1URJfZfcsDV dYHw== X-Gm-Message-State: APzg51BK/k6JBGQHiQSPXabNf3VWvWh/4EBrHWkJAbM2yHI+S6zJ7SRY LVS1rPs34RI3xCemogzxgs/SKqmGB6W0K9Trjr4H7CPTSPEmRmq82PYmE3h4qPbOMMfAaIabOti bOvsVbilDmyn3hZkAe8b8LyzydxWKDgXE9UjLdi1hU6rVYvWobJvn1Ry/h453Xo/Y669bFvMHwO N1E1q2VvBNdQHQ4pGFJ/AzNSorTh9w1XLIs/w2JF1vEGLGK1JVoGjGoklQPqB/Gj40Sx+Wg5TH2 RHlRUCRmYazgdoIVD/bqFODGimrYYArVaNd4z/k4MoL7xGb2ke6LRrRl+nx0gWfz3lNZAs3mTbP fUsdMFHT76LIzwaSgcjiICUqRta74siVaPVPYjcjH9scWfbk8zidgWcsdRHYOPGDF08okYSx7Nh 8 X-Received: by 2002:a17:902:b491:: with SMTP id y17-v6mr29517136plr.160.1536705315814; Tue, 11 Sep 2018 15:35:15 -0700 (PDT) X-Received: by 2002:a17:902:b491:: with SMTP id y17-v6mr29517096plr.160.1536705315106; Tue, 11 Sep 2018 15:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536705315; cv=none; d=google.com; s=arc-20160816; b=Rjc8pUYagIGvESa0WNK2k3WJQOvYMnTFRvLvGeqd5XcRJgjfI2e7OSORyUfggqMQqa 6P3s96zzyKFEONLsFkrHVHYGOpKLyy6kIf6QQH5RPXhtm+cu/G9IA8W5v9bHBJmUxghJ sIJX7LVfa5jh+/MS1x+gF26FQeSWmFzjh6KRBg6YwfBdq9w1nH2H2E1+hM2VYxGaqu2W uqOjK4we98p991U09sDT2OufkWyBJIBjgMe9dkZtxd+zUIsRietyNDrSHZ9bNTMWmIkd u+/lw/v6D6RKRk4PXr43vIDTMZPD5EwzP1bXyT9VSraL9d1+eDdYslQsTRn+DNggE0RB QPMw== 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=JvdyEQMxqlPrwghDlHxvAtInvD8hz18aY7aaUukIIPDCpIfXCFfph9AwYK0+zxU4FU 2OGcIJauZVhUVNMEqyte7RKzIQuJU01EiXFOAr0k2evxh2Wgu+Hj/4GnMC0j+hcXku3d 0J3YakwwH+W7Cb7hxMUJHwdpJXzrS3+4up66dBllGMzsx59jWbZspp/U0LxXy5OdTA6X boQF6GFCbACeYxHx2BxlpIsg2EkoHSgmOVefZojyeMeWaKrS11/T5DJGTEmedaDQbx3q 5xPSJkr0YzfMpxlDOdpnAEg17c98/xDPMfua+Y+rMupy+25c+ittg8vm2V9IrkiHAAbp 7YdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@osandov-com.20150623.gappssmtp.com header.s=20150623 header.b=gkSIn6ty; 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 n1-v6sor3594499plk.27.2018.09.11.15.35.14 for (Google Transport Security); Tue, 11 Sep 2018 15:35:15 -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=gkSIn6ty; 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=gkSIn6tyrTkosQgqndwLyMXZCgfmjd567GHivwkLnJV+l1gXSEhUK7IHcrX7cenp23 /lfS1nLuG9+RTfcgg4xM4vF49wJPoYkYuLXHo6wi+VsKvaZ6HvQqDlrL2IMwSfhvSp1r pFrf1WCqk/5sSrnLXYFBwc/TgqUstAZqiHQFv0UVTIoJnl71KG4x15DArl/6gYcBX/fh A69pV4vzqQG8GWFSyNGgWJfahodAEnwrgT+fUESWFZg5I8HBcg9xLjO4OWL3qjl0BEBy 8JMmdpWKUWdfOJbkEz2guo5i7T9eS3VFOPqQJffMnineocyHLlYTH7fTSjJzirdfzeVC 3c4w== X-Google-Smtp-Source: ANB0Vdb1RPPJfTzj+TMrju0ZtbGQZ2pVTTrX/4rmVIJaBE85C6AlztKCIwP3GHrvMrOQLHw0dxT/dw== X-Received: by 2002:a17:902:d213:: with SMTP id t19-v6mr29560095ply.63.1536705314519; Tue, 11 Sep 2018 15:35:14 -0700 (PDT) Received: from vader.thefacebook.com ([2620:10d:c090:200::7:13b4]) by smtp.gmail.com with ESMTPSA id 186-v6sm18710176pgg.56.2018.09.11.15.35.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Sep 2018 15:35:13 -0700 (PDT) From: Omar Sandoval To: linux-btrfs@vger.kernel.org Cc: kernel-team@fb.com, linux-mm@kvack.org Subject: [PATCH v7 2/6] mm: export add_swap_extent() Date: Tue, 11 Sep 2018 15:34:45 -0700 Message-Id: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: X-Bogosity: Ham, tests=bogofilter, spamicity=0.001714, 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 Acked-by: Andrew Morton --- 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