Commit 0b485143 authored by Stefan Behrens's avatar Stefan Behrens Committed by Chris Mason

Btrfs: fix warning for 32-bit build of fs/btrfs/check-integrity.c

There have been 4 warnings on 32-bit build, they are herewith fixed.
Signed-off-by: default avatarStefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 0b4a9d24
...@@ -1662,7 +1662,7 @@ static void btrfsic_process_written_block(struct btrfsic_dev_state *dev_state, ...@@ -1662,7 +1662,7 @@ static void btrfsic_process_written_block(struct btrfsic_dev_state *dev_state,
block = btrfsic_block_hashtable_lookup(bdev, dev_bytenr, block = btrfsic_block_hashtable_lookup(bdev, dev_bytenr,
&state->block_hashtable); &state->block_hashtable);
if (NULL != block) { if (NULL != block) {
u64 bytenr; u64 bytenr = 0;
struct list_head *elem_ref_to; struct list_head *elem_ref_to;
struct list_head *tmp_ref_to; struct list_head *tmp_ref_to;
...@@ -2777,9 +2777,10 @@ int btrfsic_submit_bh(int rw, struct buffer_head *bh) ...@@ -2777,9 +2777,10 @@ int btrfsic_submit_bh(int rw, struct buffer_head *bh)
printk(KERN_INFO printk(KERN_INFO
"submit_bh(rw=0x%x, blocknr=%lu (bytenr %llu)," "submit_bh(rw=0x%x, blocknr=%lu (bytenr %llu),"
" size=%lu, data=%p, bdev=%p)\n", " size=%lu, data=%p, bdev=%p)\n",
rw, bh->b_blocknr, rw, (unsigned long)bh->b_blocknr,
(unsigned long long)dev_bytenr, bh->b_size, (unsigned long long)dev_bytenr,
bh->b_data, bh->b_bdev); (unsigned long)bh->b_size, bh->b_data,
bh->b_bdev);
btrfsic_process_written_block(dev_state, dev_bytenr, btrfsic_process_written_block(dev_state, dev_bytenr,
bh->b_data, bh->b_size, NULL, bh->b_data, bh->b_size, NULL,
NULL, bh, rw); NULL, bh, rw);
...@@ -2844,7 +2845,7 @@ void btrfsic_submit_bio(int rw, struct bio *bio) ...@@ -2844,7 +2845,7 @@ void btrfsic_submit_bio(int rw, struct bio *bio)
printk(KERN_INFO printk(KERN_INFO
"submit_bio(rw=0x%x, bi_vcnt=%u," "submit_bio(rw=0x%x, bi_vcnt=%u,"
" bi_sector=%lu (bytenr %llu), bi_bdev=%p)\n", " bi_sector=%lu (bytenr %llu), bi_bdev=%p)\n",
rw, bio->bi_vcnt, bio->bi_sector, rw, bio->bi_vcnt, (unsigned long)bio->bi_sector,
(unsigned long long)dev_bytenr, (unsigned long long)dev_bytenr,
bio->bi_bdev); bio->bi_bdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment