Received: by 10.223.148.5 with SMTP id 5csp6379315wrq; Wed, 17 Jan 2018 12:54:24 -0800 (PST) X-Google-Smtp-Source: ACJfBovAZcChAKl9lowHj6JQ1BK/IeITZbShVtA0Nn7AFDplOXdokwmVdEegpl0zbfCu2B3zeYS/ X-Received: by 10.99.96.203 with SMTP id u194mr32497762pgb.167.1516222464494; Wed, 17 Jan 2018 12:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516222464; cv=none; d=google.com; s=arc-20160816; b=KBIrXOhuU929HRPEeEAlDvtJkDhyiq6u1FJVeCNz6R5Kq27VGr6CoHfXMCVOqTGUIt pyLYaUNug8Kd0A6iyO1H9fa1f0B2A3KheeR3DZvcL7JLj4v11eNHtxD+CCMUGiy6+0et VvIGsVlUSB5KBTcb3VXuZf283n42CJicMTeIBCQS0u2duL/DlFQvTua112R2MsWnSHMU pl5rPJibAQ9yu4HLeVOQOfRCsaeT22glHsP3Yweju6DS3oQg2Oc+PMXScMHPvVWMTFkf PYE0zkklKjnH5f+7dNszl/7OuA3pq1Z5+N4m1Y3l9ygj/PSEXFgnfQyV6webKxue+T8D oUVw== 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=SifHHZwFFRTIZT/PgpOJ4/1onRi5abDvnrmtMcTrVRw=; b=mw8H5rrxuwENwgukkF5yT2cKQldEhCQ6fzztZwPYWvaJwoKp/cdEXkT0dKMPqaLGCE TRZAlEd0brFy6kFncjcem0uwGcs7HXMMRwIHGurKML93DOxpNGTXFktVvDtdzYHhTFTw YNEXCOF+uUY3jCzjgxr7rYwOyBjLUuODtAwFYKPuOoREIozbpP3syKOKj2VIMn4GTyWW lEs/60GLLJB6xKAAUgEavtFsPiLhVVIGn9IxfPtCdpDe+qATQVJTsmSLBgGom2rCY+/d mnKxP+z+9+ciZnbvQm8T+ZjjXBSIjYidasZhn0lswNFUznskXcGx9AlEgQ9oWHBbwRko pSQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Jaixgejt; 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 m63si5066354pld.534.2018.01.17.12.54.09; Wed, 17 Jan 2018 12:54:24 -0800 (PST) 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=Jaixgejt; 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 S1754911AbeAQUxK (ORCPT + 99 others); Wed, 17 Jan 2018 15:53:10 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:47071 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753647AbeAQUWl (ORCPT ); Wed, 17 Jan 2018 15:22:41 -0500 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=SifHHZwFFRTIZT/PgpOJ4/1onRi5abDvnrmtMcTrVRw=; b=JaixgejtEUBKW/CAocUafE+Cx Rt9nUE59hxctfnm6ryiGsCjiCB5VwaK4c+saXEyvC3yqdLsxk6bBPFjNqUzNT5yzUR9qNe9C0LPIW /BEib/zmEgOqDfwnieMzguYKLV+doMXZTMfJrfBTP1ke7OjjxjYBwUMq/Po6SBeDuGD1pbVy0sa+G Fnxjn9ht8JXh90gCpkXSRWrgM8H9WOwOfGR/UjjA2uCnJiugZg2PVZHZWP7HI9e1/PG/j166dCxt5 E6GM/a9ggqJqY/Ugdj4j3JXxyKU39sQD9NCUr1j/uzu6N4KJqRmYLituAAEpTl/ah2Ng5dArK10dZ 9oHhirMuA==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1ebuEK-0005s2-Ge; Wed, 17 Jan 2018 20:22:40 +0000 From: Matthew Wilcox To: linux-kernel@vger.kernel.org Cc: Matthew Wilcox , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-nilfs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-xfs@vger.kernel.org, linux-usb@vger.kernel.org, Bjorn Andersson , Stefano Stabellini , iommu@lists.linux-foundation.org, linux-remoteproc@vger.kernel.org, linux-s390@vger.kernel.org, intel-gfx@lists.freedesktop.org, cgroups@vger.kernel.org, linux-sh@vger.kernel.org, David Howells Subject: [PATCH v6 40/99] pagevec: Use xa_tag_t Date: Wed, 17 Jan 2018 12:21:04 -0800 Message-Id: <20180117202203.19756-41-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180117202203.19756-1-willy@infradead.org> References: <20180117202203.19756-1-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox 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 22948f4febe7..4301cbf4e31f 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -3795,7 +3795,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) { @@ -3922,7 +3922,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 534a9130f625..4b7c10853928 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -2614,7 +2614,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 8f51ac47b77f..c8f6d9806896 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1640,7 +1640,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 1daf15a1f00c..c78ecd008191 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c @@ -369,7 +369,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 5fb6580f7f23..5168901bf06d 100644 --- a/include/linux/pagevec.h +++ b/include/linux/pagevec.h @@ -9,6 +9,8 @@ #ifndef _LINUX_PAGEVEC_H #define _LINUX_PAGEVEC_H +#include + /* 14 pointers + two long's align the pagevec structure to a power of two */ #define PAGEVEC_SIZE 14 @@ -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 8d7773cb2c3f..31d79479dacf 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -991,7 +991,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); @@ -1001,7 +1001,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.15.1