aboutsummaryrefslogtreecommitdiffstats
path: root/mm/internal.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-06-01 12:03:05 -0400
committerDarrick J. Wong <darrick.wong@oracle.com>2018-06-01 21:37:32 -0400
commitc534aa3fdd149fab18b094375f334b4bb3635cbf (patch)
treeddedbe71f726ff1921b95dcae15fcb8f83b7ead2 /mm/internal.h
parent836978b35fcd402a31323a16ac0b4c8242890a84 (diff)
mm: return an unsigned int from __do_page_cache_readahead
We never return an error, so switch to returning an unsigned int. Most callers already did implicit casts to an unsigned type, and the one that didn't can be simplified now. Suggested-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'mm/internal.h')
-rw-r--r--mm/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/internal.h b/mm/internal.h
index 62d8c34e63d5..954003ac766a 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -53,7 +53,7 @@ void unmap_page_range(struct mmu_gather *tlb,
53 unsigned long addr, unsigned long end, 53 unsigned long addr, unsigned long end,
54 struct zap_details *details); 54 struct zap_details *details);
55 55
56extern int __do_page_cache_readahead(struct address_space *mapping, 56extern unsigned int __do_page_cache_readahead(struct address_space *mapping,
57 struct file *filp, pgoff_t offset, unsigned long nr_to_read, 57 struct file *filp, pgoff_t offset, unsigned long nr_to_read,
58 unsigned long lookahead_size); 58 unsigned long lookahead_size);
59 59