aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/balloc.c
diff options
context:
space:
mode:
authorMingming Cao <cmm@us.ibm.com>2006-10-11 04:21:11 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-11 14:14:18 -0400
commit2ae0210760aed9d626eaede5b63db95e198f7c8e (patch)
tree40fd1795f7d2b337407876d515a0147d72cea4f4 /fs/ext4/balloc.c
parentbd81d8eec043094d3ff729a8ff6d5b3a06d3c4b1 (diff)
[PATCH] ext4: blk_type from sector_t to unsigned long long
Change ext4 in-kernel block type (ext4_fsblk_t) from sector_t to unsigned long long. Remove ext4 block type string micro E3FSBLK, replaced with "%llu" [akpm@osdl.org: build fix] Signed-off-by: Mingming Cao <cmm@us.ibm.com> Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r--fs/ext4/balloc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
index 6887151ccc47..df77ea891f29 100644
--- a/fs/ext4/balloc.c
+++ b/fs/ext4/balloc.c
@@ -103,7 +103,7 @@ read_block_bitmap(struct super_block *sb, unsigned int block_group)
103 if (!bh) 103 if (!bh)
104 ext4_error (sb, "read_block_bitmap", 104 ext4_error (sb, "read_block_bitmap",
105 "Cannot read block bitmap - " 105 "Cannot read block bitmap - "
106 "block_group = %d, block_bitmap = "E3FSBLK, 106 "block_group = %d, block_bitmap = %llu",
107 block_group, 107 block_group,
108 ext4_block_bitmap(desc)); 108 ext4_block_bitmap(desc));
109error_out: 109error_out:
@@ -148,7 +148,7 @@ restart:
148 rsv = list_entry(n, struct ext4_reserve_window_node, rsv_node); 148 rsv = list_entry(n, struct ext4_reserve_window_node, rsv_node);
149 if (verbose) 149 if (verbose)
150 printk("reservation window 0x%p " 150 printk("reservation window 0x%p "
151 "start: "E3FSBLK", end: "E3FSBLK"\n", 151 "start: %llu, end: %llu\n",
152 rsv, rsv->rsv_start, rsv->rsv_end); 152 rsv, rsv->rsv_start, rsv->rsv_end);
153 if (rsv->rsv_start && rsv->rsv_start >= rsv->rsv_end) { 153 if (rsv->rsv_start && rsv->rsv_start >= rsv->rsv_end) {
154 printk("Bad reservation %p (start >= end)\n", 154 printk("Bad reservation %p (start >= end)\n",
@@ -436,7 +436,7 @@ void ext4_free_blocks_sb(handle_t *handle, struct super_block *sb,
436 block + count > ext4_blocks_count(es)) { 436 block + count > ext4_blocks_count(es)) {
437 ext4_error (sb, "ext4_free_blocks", 437 ext4_error (sb, "ext4_free_blocks",
438 "Freeing blocks not in datazone - " 438 "Freeing blocks not in datazone - "
439 "block = "E3FSBLK", count = %lu", block, count); 439 "block = %llu, count = %lu", block, count);
440 goto error_return; 440 goto error_return;
441 } 441 }
442 442
@@ -468,7 +468,7 @@ do_more:
468 sbi->s_itb_per_group)) 468 sbi->s_itb_per_group))
469 ext4_error (sb, "ext4_free_blocks", 469 ext4_error (sb, "ext4_free_blocks",
470 "Freeing blocks in system zones - " 470 "Freeing blocks in system zones - "
471 "Block = "E3FSBLK", count = %lu", 471 "Block = %llu, count = %lu",
472 block, count); 472 block, count);
473 473
474 /* 474 /*
@@ -552,7 +552,7 @@ do_more:
552 bit + i, bitmap_bh->b_data)) { 552 bit + i, bitmap_bh->b_data)) {
553 jbd_unlock_bh_state(bitmap_bh); 553 jbd_unlock_bh_state(bitmap_bh);
554 ext4_error(sb, __FUNCTION__, 554 ext4_error(sb, __FUNCTION__,
555 "bit already cleared for block "E3FSBLK, 555 "bit already cleared for block %llu",
556 (ext4_fsblk_t)(block + i)); 556 (ext4_fsblk_t)(block + i));
557 jbd_lock_bh_state(bitmap_bh); 557 jbd_lock_bh_state(bitmap_bh);
558 BUFFER_TRACE(bitmap_bh, "bit already cleared"); 558 BUFFER_TRACE(bitmap_bh, "bit already cleared");
@@ -1569,7 +1569,7 @@ allocated:
1569 EXT4_SB(sb)->s_itb_per_group)) 1569 EXT4_SB(sb)->s_itb_per_group))
1570 ext4_error(sb, "ext4_new_block", 1570 ext4_error(sb, "ext4_new_block",
1571 "Allocating block in system zone - " 1571 "Allocating block in system zone - "
1572 "blocks from "E3FSBLK", length %lu", 1572 "blocks from %llu, length %lu",
1573 ret_block, num); 1573 ret_block, num);
1574 1574
1575 performed_allocation = 1; 1575 performed_allocation = 1;
@@ -1606,7 +1606,7 @@ allocated:
1606 1606
1607 if (ret_block + num - 1 >= ext4_blocks_count(es)) { 1607 if (ret_block + num - 1 >= ext4_blocks_count(es)) {
1608 ext4_error(sb, "ext4_new_block", 1608 ext4_error(sb, "ext4_new_block",
1609 "block("E3FSBLK") >= blocks count("E3FSBLK") - " 1609 "block(%llu) >= blocks count(%llu) - "
1610 "block_group = %lu, es == %p ", ret_block, 1610 "block_group = %lu, es == %p ", ret_block,
1611 ext4_blocks_count(es), group_no, es); 1611 ext4_blocks_count(es), group_no, es);
1612 goto out; 1612 goto out;
@@ -1705,8 +1705,8 @@ ext4_fsblk_t ext4_count_free_blocks(struct super_block *sb)
1705 bitmap_count += x; 1705 bitmap_count += x;
1706 } 1706 }
1707 brelse(bitmap_bh); 1707 brelse(bitmap_bh);
1708 printk("ext4_count_free_blocks: stored = "E3FSBLK 1708 printk("ext4_count_free_blocks: stored = %llu"
1709 ", computed = "E3FSBLK", "E3FSBLK"\n", 1709 ", computed = %llu, %llu\n",
1710 EXT4_FREE_BLOCKS_COUNT(es), 1710 EXT4_FREE_BLOCKS_COUNT(es),
1711 desc_count, bitmap_count); 1711 desc_count, bitmap_count);
1712 return bitmap_count; 1712 return bitmap_count;