Skip to content

Commit

Permalink
[PATCH] splice: fix min() warning
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jens Axboe <axboe@suse.de>
  • Loading branch information
Andrew Morton authored and Jens Axboe committed Apr 26, 2006
1 parent 4d5c34e commit ba5f5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = min(len, PAGE_CACHE_SIZE - loff);
this_len = min_t(unsigned long, len, PAGE_CACHE_SIZE - loff);
find_page:
/*
* lookup the page for this index
Expand Down

0 comments on commit ba5f5d9

Please sign in to comment.