diff options
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r-- | fs/btrfs/compression.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index b582c6fd80f2..bfd1512cce0a 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c | |||
@@ -174,7 +174,8 @@ static noinline int end_compressed_writeback(struct inode *inode, u64 start, | |||
174 | 174 | ||
175 | while(nr_pages > 0) { | 175 | while(nr_pages > 0) { |
176 | ret = find_get_pages_contig(inode->i_mapping, index, | 176 | ret = find_get_pages_contig(inode->i_mapping, index, |
177 | min(nr_pages, ARRAY_SIZE(pages)), pages); | 177 | min_t(unsigned long, |
178 | nr_pages, ARRAY_SIZE(pages)), pages); | ||
178 | if (ret == 0) { | 179 | if (ret == 0) { |
179 | nr_pages -= 1; | 180 | nr_pages -= 1; |
180 | index += 1; | 181 | index += 1; |