commit | 961d023213b94861480f5d6533f7adc8332eb527 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Wed Feb 06 11:01:42 2008 -0500 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Sep 25 11:04:00 2008 -0400 |
tree | 405049d8ad2513e3842bcabe0f94e9f573bd130e | |
parent | 5d196fc15dbe1cc54b81801694aafe218121e054 [diff] [blame] |
Btrfs: Don't case unsigned long to int in bio submission Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 36a943e..b68e57f 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c
@@ -1705,7 +1705,7 @@ return 0; } } - nr = min_t(int, max_pages, bio_get_nr_vecs(bdev)); + nr = bio_get_nr_vecs(bdev); bio = extent_bio_alloc(bdev, sector, nr, GFP_NOFS | __GFP_HIGH); if (!bio) { printk("failed to allocate bio nr %d\n", nr);