Commit ba5f5d90 authored by Andrew Morton's avatar Andrew Morton Committed by Jens Axboe

[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
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment