aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-02-06 11:01:42 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:00 -0400
commit961d023213b94861480f5d6533f7adc8332eb527 (patch)
tree405049d8ad2513e3842bcabe0f94e9f573bd130e /fs
parent5d196fc15dbe1cc54b81801694aafe218121e054 (diff)
Btrfs: Don't case unsigned long to int in bio submission
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 36a943e51808..b68e57f66a96 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -1705,7 +1705,7 @@ static int submit_extent_page(int rw, struct extent_io_tree *tree,
1705 return 0; 1705 return 0;
1706 } 1706 }
1707 } 1707 }
1708 nr = min_t(int, max_pages, bio_get_nr_vecs(bdev)); 1708 nr = bio_get_nr_vecs(bdev);
1709 bio = extent_bio_alloc(bdev, sector, nr, GFP_NOFS | __GFP_HIGH); 1709 bio = extent_bio_alloc(bdev, sector, nr, GFP_NOFS | __GFP_HIGH);
1710 if (!bio) { 1710 if (!bio) {
1711 printk("failed to allocate bio nr %d\n", nr); 1711 printk("failed to allocate bio nr %d\n", nr);