dect
/
linux-2.6
Archived
13
0
Fork 0

[PATCH] splice: fix min() warning

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jens Axboe <axboe@suse.de>
This commit is contained in:
Andrew Morton 2006-04-25 15:33:34 +02:00 committed by Jens Axboe
parent 4d5c34ec7b
commit ba5f5d90c4
1 changed files with 1 additions and 1 deletions

View File

@ -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