projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d5c34e
)
[PATCH] splice: fix min() warning
author
Andrew Morton
<akpm@osdl.org>
Tue, 25 Apr 2006 13:33:34 +0000
(15:33 +0200)
committer
Jens Axboe
<axboe@nelson.home.kernel.dk>
Wed, 26 Apr 2006 08:33:34 +0000
(10:33 +0200)
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jens Axboe <axboe@suse.de>
fs/splice.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/splice.c
b/fs/splice.c
index 0559e7577a04164ececffdcdbd57089d980dd586..4aa67254740f8853c672536c7c8ed8f0a9be241c 100644
(file)
--- 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