aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-11-11 09:34:41 -0500
committerChris Mason <chris.mason@oracle.com>2008-11-11 09:34:41 -0500
commit5b050f04c8ce911c5b6831305a24d70eab95e732 (patch)
treeebc7be1f9526a75a8d7ac7a7984c20d728ca96d1 /fs/btrfs/compression.c
parent8247b41ac980d125de8aeba6f33f381056ac0ecb (diff)
Btrfs: Fix compile warnings on 32 bit machines
Simple casting here and there to fix things up. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r--fs/btrfs/compression.c3
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;