diff options
Diffstat (limited to 'fs/btrfs/zlib.c')
-rw-r--r-- | fs/btrfs/zlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/zlib.c b/fs/btrfs/zlib.c index ba2527d08734..5b9f7002513c 100644 --- a/fs/btrfs/zlib.c +++ b/fs/btrfs/zlib.c | |||
@@ -370,7 +370,7 @@ int btrfs_zlib_decompress_biovec(struct page **pages_in, | |||
370 | 370 | ||
371 | data_in = kmap(pages_in[page_in_index]); | 371 | data_in = kmap(pages_in[page_in_index]); |
372 | workspace->inf_strm.next_in = data_in; | 372 | workspace->inf_strm.next_in = data_in; |
373 | workspace->inf_strm.avail_in = min(srclen, PAGE_CACHE_SIZE); | 373 | workspace->inf_strm.avail_in = min_t(size_t, srclen, PAGE_CACHE_SIZE); |
374 | workspace->inf_strm.total_in = 0; | 374 | workspace->inf_strm.total_in = 0; |
375 | 375 | ||
376 | workspace->inf_strm.total_out = 0; | 376 | workspace->inf_strm.total_out = 0; |