commit | ba5f5d90c45a30e4e9a1bd136acf1b3973c905c8 | [log] [tgz] |
---|---|---|
author | Andrew Morton <akpm@osdl.org> | Tue Apr 25 15:33:34 2006 +0200 |
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | Wed Apr 26 10:33:34 2006 +0200 |
tree | 5f4d3b830e401af51fd91afec3242067d0d88035 | |
parent | 4d5c34ec7b007cfb0771a36996b009f194acbb2f [diff] [blame] |
[PATCH] splice: fix min() warning Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Jens Axboe <axboe@suse.de>
diff --git a/fs/splice.c b/fs/splice.c index 0559e75..4aa6725 100644 --- a/fs/splice.c +++ b/fs/splice.c
@@ -283,7 +283,7 @@ /* * 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