Skip to content
Snippets Groups Projects
Commit ba5f5d90 authored by Andrew Morton's avatar Andrew Morton Committed by Jens Axboe
Browse files

[PATCH] splice: fix min() warning


Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJens Axboe <axboe@suse.de>
parent 4d5c34ec
No related branches found
No related tags found
No related merge requests found
...@@ -283,7 +283,7 @@ __generic_file_splice_read(struct file *in, loff_t *ppos, ...@@ -283,7 +283,7 @@ __generic_file_splice_read(struct file *in, loff_t *ppos,
/* /*
* this_len is the max we'll use from this page * this_len is the max we'll use from this page
*/ */
this_len = min(len, PAGE_CACHE_SIZE - loff); this_len = min_t(unsigned long, len, PAGE_CACHE_SIZE - loff);
find_page: find_page:
/* /*
* lookup the page for this index * lookup the page for this index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment