diff options
-rw-r--r-- | fs/splice.c | 2 |
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, | |||
283 | /* | 283 | /* |
284 | * this_len is the max we'll use from this page | 284 | * this_len is the max we'll use from this page |
285 | */ | 285 | */ |
286 | this_len = min(len, PAGE_CACHE_SIZE - loff); | 286 | this_len = min_t(unsigned long, len, PAGE_CACHE_SIZE - loff); |
287 | find_page: | 287 | find_page: |
288 | /* | 288 | /* |
289 | * lookup the page for this index | 289 | * lookup the page for this index |