diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-02-06 11:01:42 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:00 -0400 |
commit | 961d023213b94861480f5d6533f7adc8332eb527 (patch) | |
tree | 405049d8ad2513e3842bcabe0f94e9f573bd130e /fs | |
parent | 5d196fc15dbe1cc54b81801694aafe218121e054 (diff) | |
download | kernel_samsung_smdk4412-961d023213b94861480f5d6533f7adc8332eb527.zip kernel_samsung_smdk4412-961d023213b94861480f5d6533f7adc8332eb527.tar.gz kernel_samsung_smdk4412-961d023213b94861480f5d6533f7adc8332eb527.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ static int submit_extent_page(int rw, struct extent_io_tree *tree, 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); |