aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-04-25 15:33:34 +0200
committerJens Axboe <axboe@nelson.home.kernel.dk>2006-04-26 10:33:34 +0200
commitba5f5d90c45a30e4e9a1bd136acf1b3973c905c8 (patch)
tree5f4d3b830e401af51fd91afec3242067d0d88035 /fs
parent[PATCH] Alpha: strncpy() fix (diff)
downloadlinux-dev-ba5f5d90c45a30e4e9a1bd136acf1b3973c905c8.tar.xz
linux-dev-ba5f5d90c45a30e4e9a1bd136acf1b3973c905c8.zip
[PATCH] splice: fix min() warning
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/splice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/splice.c b/fs/splice.c
index 0559e7577a04..4aa67254740f 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -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