Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2452780imm; Sat, 16 Jun 2018 19:11:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKgBr9I9pi0YsmMV6/uckZGtNFSGARRPUCRoUKiSyNuxCsdidU8lVR71+ZunmskTarmAlwf X-Received: by 2002:a17:902:d711:: with SMTP id w17-v6mr8262981ply.200.1529201518379; Sat, 16 Jun 2018 19:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529201518; cv=none; d=google.com; s=arc-20160816; b=qcRIvYUnU2FBUPNwX6qu9tRxfMPWGxeomUHgjlmQI1fCaXh6WbSBbR50rq0l1U+KJk Ybxdl5mKJk99Q6LvjNVOHadjVmkM4DztOlvH/4YLQfKqiMg8OD0yqeeNh3VPUi5zo3LA zzX8bDc57YVmry7IKKAHr/XgzU3OLzfuzxTXI5VdVVattQVNOfTjeAfps9tjfAUZJ3re L48aXVfL1yZyfvWW42pfeQzgVLkR+4mRotJptlBhtZuna1k2q2T3/zjCULowdkj9tWhn IfdTze9CILqw/lji9kOrIXJDUbiChoeOAMAaZc/9ibluT0B9DTNTrqTabttFly+uWeIP 7/tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Jma1TiXYXgzbd/mOR5mS37ALLbcKLGTSgi/PIzREx/M=; b=kOH3JMXVBhC5olRwCQfo4yOSBxtyiEzCLnNROP2g9Ax3ZBwf0orUVQrE5BchH1fvDd d6ESg+6Z/fO4wx/scDwWhocfYlU2EztZ5PF6tnGFsQfRkKkfPDrsynBv4tf3ieNFnrAh bOdYhVJRBs9MYK5dC74r7+pOVzi8vL247br4iL0QTCqXRk8X04FCj2raN4gksc9Sdzm3 Lv1YT41EhmGpOFsX4IYMRwyRZ3XIHFUo5BLABJvviziY/tHkoxx/QaOb+AVvj8zjKpgW MXuWAZc9z3vPs7fsaWXY1/NYUBNiHxyKHg/BpIn1wWtEslA3Eoec7W3NPwF6FrJ9R5cs 9a1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fwWZtttC; 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 n6-v6si1863264pgs.205.2018.06.16.19.11.44; Sat, 16 Jun 2018 19:11:58 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fwWZtttC; 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 S934649AbeFQCJy (ORCPT + 99 others); Sat, 16 Jun 2018 22:09:54 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59150 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933946AbeFQCBI (ORCPT ); Sat, 16 Jun 2018 22:01:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Jma1TiXYXgzbd/mOR5mS37ALLbcKLGTSgi/PIzREx/M=; b=fwWZtttCxY+0MmbUgv/KTnqSz 2QxR9WoCQwWJjtieIzUFai9TwYYAJpBFStnrHWuq9wrjhOy/zirnUHLes7qf7jj+ljtnxorPvz5Am YHaBRaeZk8nTfE9bXmAtmAYd4ZXBkTDraDqN/2m1QFHX8leQhEzitQwUeVij6Jbk5OHiHtoTT9TAt 0NQbeAkf7oRDz89TaaYgkNLafY7lj7wA6X2C7/W4KZTnWsIO0mwBYgcofzH1E+FdpZUKcKBbB1LRt bJFhOejTG3H7M0nWxZgz/VghNiH+UINRZDcNCLZJ2PWtbxpP77y2e7iXse8ORK3/AYogrMqNBaqWl eOYDnzEpw==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUN07-0001NY-TL; Sun, 17 Jun 2018 02:01:07 +0000 From: Matthew Wilcox To: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Matthew Wilcox , Jan Kara , Jeff Layton , Lukas Czerner , Ross Zwisler , Christoph Hellwig , Goldwyn Rodrigues , Nicholas Piggin , Ryusuke Konishi , linux-nilfs@vger.kernel.org, Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH v14 46/74] pagevec: Use xa_tag_t Date: Sat, 16 Jun 2018 19:00:24 -0700 Message-Id: <20180617020052.4759-47-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180617020052.4759-1-willy@infradead.org> References: <20180617020052.4759-1-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Removes sparse warnings. Signed-off-by: Matthew Wilcox --- fs/btrfs/extent_io.c | 4 ++-- fs/ext4/inode.c | 2 +- fs/f2fs/data.c | 2 +- fs/gfs2/aops.c | 2 +- include/linux/pagevec.h | 8 +++++--- mm/swap.c | 4 ++-- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index cce6087d6880..ac105d97dd81 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -3792,7 +3792,7 @@ int btree_write_cache_pages(struct address_space *mapping, pgoff_t index; pgoff_t end; /* Inclusive */ int scanned = 0; - int tag; + xa_tag_t tag; pagevec_init(&pvec); if (wbc->range_cyclic) { @@ -3917,7 +3917,7 @@ static int extent_write_cache_pages(struct address_space *mapping, pgoff_t done_index; int range_whole = 0; int scanned = 0; - int tag; + xa_tag_t tag; /* * We have to hold onto the inode so that ordered extents can do their diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 38214c05f204..e6c433527dce 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -2615,7 +2615,7 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd) long left = mpd->wbc->nr_to_write; pgoff_t index = mpd->first_page; pgoff_t end = mpd->last_page; - int tag; + xa_tag_t tag; int i, err = 0; int blkbits = mpd->inode->i_blkbits; ext4_lblk_t lblk; diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 8f931d699287..e5c0b1e74ce6 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1942,7 +1942,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, pgoff_t last_idx = ULONG_MAX; int cycled; int range_whole = 0; - int tag; + xa_tag_t tag; pagevec_init(&pvec); diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index 35f5ee23566d..b8609bb1e2e0 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c @@ -370,7 +370,7 @@ static int gfs2_write_cache_jdata(struct address_space *mapping, pgoff_t done_index; int cycled; int range_whole = 0; - int tag; + xa_tag_t tag; pagevec_init(&pvec); if (wbc->range_cyclic) { diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h index 6dc456ac6136..955bd6425903 100644 --- a/include/linux/pagevec.h +++ b/include/linux/pagevec.h @@ -9,6 +9,8 @@ #ifndef _LINUX_PAGEVEC_H #define _LINUX_PAGEVEC_H +#include + /* 15 pointers + header align the pagevec structure to a power of two */ #define PAGEVEC_SIZE 15 @@ -40,12 +42,12 @@ static inline unsigned pagevec_lookup(struct pagevec *pvec, unsigned pagevec_lookup_range_tag(struct pagevec *pvec, struct address_space *mapping, pgoff_t *index, pgoff_t end, - int tag); + xa_tag_t tag); unsigned pagevec_lookup_range_nr_tag(struct pagevec *pvec, struct address_space *mapping, pgoff_t *index, pgoff_t end, - int tag, unsigned max_pages); + xa_tag_t tag, unsigned max_pages); static inline unsigned pagevec_lookup_tag(struct pagevec *pvec, - struct address_space *mapping, pgoff_t *index, int tag) + struct address_space *mapping, pgoff_t *index, xa_tag_t tag) { return pagevec_lookup_range_tag(pvec, mapping, index, (pgoff_t)-1, tag); } diff --git a/mm/swap.c b/mm/swap.c index 4c5c7fcc6e46..a7ff602213a9 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -1002,7 +1002,7 @@ EXPORT_SYMBOL(pagevec_lookup_range); unsigned pagevec_lookup_range_tag(struct pagevec *pvec, struct address_space *mapping, pgoff_t *index, pgoff_t end, - int tag) + xa_tag_t tag) { pvec->nr = find_get_pages_range_tag(mapping, index, end, tag, PAGEVEC_SIZE, pvec->pages); @@ -1012,7 +1012,7 @@ EXPORT_SYMBOL(pagevec_lookup_range_tag); unsigned pagevec_lookup_range_nr_tag(struct pagevec *pvec, struct address_space *mapping, pgoff_t *index, pgoff_t end, - int tag, unsigned max_pages) + xa_tag_t tag, unsigned max_pages) { pvec->nr = find_get_pages_range_tag(mapping, index, end, tag, min_t(unsigned int, max_pages, PAGEVEC_SIZE), pvec->pages); -- 2.17.1