diff options
author | Mingming Cao <cmm@us.ibm.com> | 2006-10-11 04:21:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:18 -0400 |
commit | 2ae0210760aed9d626eaede5b63db95e198f7c8e (patch) | |
tree | 40fd1795f7d2b337407876d515a0147d72cea4f4 /fs | |
parent | bd81d8eec043094d3ff729a8ff6d5b3a06d3c4b1 (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')
-rw-r--r-- | fs/ext4/balloc.c | 18 | ||||
-rw-r--r-- | fs/ext4/extents.c | 38 | ||||
-rw-r--r-- | fs/ext4/inode.c | 6 | ||||
-rw-r--r-- | fs/ext4/resize.c | 28 | ||||
-rw-r--r-- | fs/ext4/super.c | 6 | ||||
-rw-r--r-- | fs/ext4/xattr.c | 12 |
6 files changed, 54 insertions, 54 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)); |
109 | error_out: | 109 | error_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; |
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index e06e937a52b8..f72b7567bfa2 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -281,10 +281,10 @@ static void ext4_ext_show_path(struct inode *inode, struct ext4_ext_path *path) | |||
281 | ext_debug("path:"); | 281 | ext_debug("path:"); |
282 | for (k = 0; k <= l; k++, path++) { | 282 | for (k = 0; k <= l; k++, path++) { |
283 | if (path->p_idx) { | 283 | if (path->p_idx) { |
284 | ext_debug(" %d->"E3FSBLK, le32_to_cpu(path->p_idx->ei_block), | 284 | ext_debug(" %d->%llu", le32_to_cpu(path->p_idx->ei_block), |
285 | idx_pblock(path->p_idx)); | 285 | idx_pblock(path->p_idx)); |
286 | } else if (path->p_ext) { | 286 | } else if (path->p_ext) { |
287 | ext_debug(" %d:%d:"E3FSBLK" ", | 287 | ext_debug(" %d:%d:%llu ", |
288 | le32_to_cpu(path->p_ext->ee_block), | 288 | le32_to_cpu(path->p_ext->ee_block), |
289 | le16_to_cpu(path->p_ext->ee_len), | 289 | le16_to_cpu(path->p_ext->ee_len), |
290 | ext_pblock(path->p_ext)); | 290 | ext_pblock(path->p_ext)); |
@@ -308,7 +308,7 @@ static void ext4_ext_show_leaf(struct inode *inode, struct ext4_ext_path *path) | |||
308 | ex = EXT_FIRST_EXTENT(eh); | 308 | ex = EXT_FIRST_EXTENT(eh); |
309 | 309 | ||
310 | for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ex++) { | 310 | for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ex++) { |
311 | ext_debug("%d:%d:"E3FSBLK" ", le32_to_cpu(ex->ee_block), | 311 | ext_debug("%d:%d:%llu ", le32_to_cpu(ex->ee_block), |
312 | le16_to_cpu(ex->ee_len), ext_pblock(ex)); | 312 | le16_to_cpu(ex->ee_len), ext_pblock(ex)); |
313 | } | 313 | } |
314 | ext_debug("\n"); | 314 | ext_debug("\n"); |
@@ -426,7 +426,7 @@ ext4_ext_binsearch(struct inode *inode, struct ext4_ext_path *path, int block) | |||
426 | } | 426 | } |
427 | 427 | ||
428 | path->p_ext = l - 1; | 428 | path->p_ext = l - 1; |
429 | ext_debug(" -> %d:"E3FSBLK":%d ", | 429 | ext_debug(" -> %d:%llu:%d ", |
430 | le32_to_cpu(path->p_ext->ee_block), | 430 | le32_to_cpu(path->p_ext->ee_block), |
431 | ext_pblock(path->p_ext), | 431 | ext_pblock(path->p_ext), |
432 | le16_to_cpu(path->p_ext->ee_len)); | 432 | le16_to_cpu(path->p_ext->ee_len)); |
@@ -687,7 +687,7 @@ static int ext4_ext_split(handle_t *handle, struct inode *inode, | |||
687 | path[depth].p_ext++; | 687 | path[depth].p_ext++; |
688 | while (path[depth].p_ext <= | 688 | while (path[depth].p_ext <= |
689 | EXT_MAX_EXTENT(path[depth].p_hdr)) { | 689 | EXT_MAX_EXTENT(path[depth].p_hdr)) { |
690 | ext_debug("move %d:"E3FSBLK":%d in new leaf "E3FSBLK"\n", | 690 | ext_debug("move %d:%llu:%d in new leaf %llu\n", |
691 | le32_to_cpu(path[depth].p_ext->ee_block), | 691 | le32_to_cpu(path[depth].p_ext->ee_block), |
692 | ext_pblock(path[depth].p_ext), | 692 | ext_pblock(path[depth].p_ext), |
693 | le16_to_cpu(path[depth].p_ext->ee_len), | 693 | le16_to_cpu(path[depth].p_ext->ee_len), |
@@ -752,7 +752,7 @@ static int ext4_ext_split(handle_t *handle, struct inode *inode, | |||
752 | fidx->ei_block = border; | 752 | fidx->ei_block = border; |
753 | ext4_idx_store_pblock(fidx, oldblock); | 753 | ext4_idx_store_pblock(fidx, oldblock); |
754 | 754 | ||
755 | ext_debug("int.index at %d (block "E3FSBLK"): %lu -> "E3FSBLK"\n", i, | 755 | ext_debug("int.index at %d (block %llu): %lu -> %llu\n", i, |
756 | newblock, (unsigned long) le32_to_cpu(border), | 756 | newblock, (unsigned long) le32_to_cpu(border), |
757 | oldblock); | 757 | oldblock); |
758 | /* copy indexes */ | 758 | /* copy indexes */ |
@@ -764,7 +764,7 @@ static int ext4_ext_split(handle_t *handle, struct inode *inode, | |||
764 | BUG_ON(EXT_MAX_INDEX(path[i].p_hdr) != | 764 | BUG_ON(EXT_MAX_INDEX(path[i].p_hdr) != |
765 | EXT_LAST_INDEX(path[i].p_hdr)); | 765 | EXT_LAST_INDEX(path[i].p_hdr)); |
766 | while (path[i].p_idx <= EXT_MAX_INDEX(path[i].p_hdr)) { | 766 | while (path[i].p_idx <= EXT_MAX_INDEX(path[i].p_hdr)) { |
767 | ext_debug("%d: move %d:%d in new index "E3FSBLK"\n", i, | 767 | ext_debug("%d: move %d:%d in new index %llu\n", i, |
768 | le32_to_cpu(path[i].p_idx->ei_block), | 768 | le32_to_cpu(path[i].p_idx->ei_block), |
769 | idx_pblock(path[i].p_idx), | 769 | idx_pblock(path[i].p_idx), |
770 | newblock); | 770 | newblock); |
@@ -898,7 +898,7 @@ static int ext4_ext_grow_indepth(handle_t *handle, struct inode *inode, | |||
898 | 898 | ||
899 | neh = ext_inode_hdr(inode); | 899 | neh = ext_inode_hdr(inode); |
900 | fidx = EXT_FIRST_INDEX(neh); | 900 | fidx = EXT_FIRST_INDEX(neh); |
901 | ext_debug("new root: num %d(%d), lblock %d, ptr "E3FSBLK"\n", | 901 | ext_debug("new root: num %d(%d), lblock %d, ptr %llu\n", |
902 | le16_to_cpu(neh->eh_entries), le16_to_cpu(neh->eh_max), | 902 | le16_to_cpu(neh->eh_entries), le16_to_cpu(neh->eh_max), |
903 | le32_to_cpu(fidx->ei_block), idx_pblock(fidx)); | 903 | le32_to_cpu(fidx->ei_block), idx_pblock(fidx)); |
904 | 904 | ||
@@ -1145,7 +1145,7 @@ int ext4_ext_insert_extent(handle_t *handle, struct inode *inode, | |||
1145 | 1145 | ||
1146 | /* try to insert block into found extent and return */ | 1146 | /* try to insert block into found extent and return */ |
1147 | if (ex && ext4_can_extents_be_merged(inode, ex, newext)) { | 1147 | if (ex && ext4_can_extents_be_merged(inode, ex, newext)) { |
1148 | ext_debug("append %d block to %d:%d (from "E3FSBLK")\n", | 1148 | ext_debug("append %d block to %d:%d (from %llu)\n", |
1149 | le16_to_cpu(newext->ee_len), | 1149 | le16_to_cpu(newext->ee_len), |
1150 | le32_to_cpu(ex->ee_block), | 1150 | le32_to_cpu(ex->ee_block), |
1151 | le16_to_cpu(ex->ee_len), ext_pblock(ex)); | 1151 | le16_to_cpu(ex->ee_len), ext_pblock(ex)); |
@@ -1204,7 +1204,7 @@ has_space: | |||
1204 | 1204 | ||
1205 | if (!nearex) { | 1205 | if (!nearex) { |
1206 | /* there is no extent in this leaf, create first one */ | 1206 | /* there is no extent in this leaf, create first one */ |
1207 | ext_debug("first extent in the leaf: %d:"E3FSBLK":%d\n", | 1207 | ext_debug("first extent in the leaf: %d:%llu:%d\n", |
1208 | le32_to_cpu(newext->ee_block), | 1208 | le32_to_cpu(newext->ee_block), |
1209 | ext_pblock(newext), | 1209 | ext_pblock(newext), |
1210 | le16_to_cpu(newext->ee_len)); | 1210 | le16_to_cpu(newext->ee_len)); |
@@ -1216,7 +1216,7 @@ has_space: | |||
1216 | len = EXT_MAX_EXTENT(eh) - nearex; | 1216 | len = EXT_MAX_EXTENT(eh) - nearex; |
1217 | len = (len - 1) * sizeof(struct ext4_extent); | 1217 | len = (len - 1) * sizeof(struct ext4_extent); |
1218 | len = len < 0 ? 0 : len; | 1218 | len = len < 0 ? 0 : len; |
1219 | ext_debug("insert %d:"E3FSBLK":%d after: nearest 0x%p, " | 1219 | ext_debug("insert %d:%llu:%d after: nearest 0x%p, " |
1220 | "move %d from 0x%p to 0x%p\n", | 1220 | "move %d from 0x%p to 0x%p\n", |
1221 | le32_to_cpu(newext->ee_block), | 1221 | le32_to_cpu(newext->ee_block), |
1222 | ext_pblock(newext), | 1222 | ext_pblock(newext), |
@@ -1229,7 +1229,7 @@ has_space: | |||
1229 | BUG_ON(newext->ee_block == nearex->ee_block); | 1229 | BUG_ON(newext->ee_block == nearex->ee_block); |
1230 | len = (EXT_MAX_EXTENT(eh) - nearex) * sizeof(struct ext4_extent); | 1230 | len = (EXT_MAX_EXTENT(eh) - nearex) * sizeof(struct ext4_extent); |
1231 | len = len < 0 ? 0 : len; | 1231 | len = len < 0 ? 0 : len; |
1232 | ext_debug("insert %d:"E3FSBLK":%d before: nearest 0x%p, " | 1232 | ext_debug("insert %d:%llu:%d before: nearest 0x%p, " |
1233 | "move %d from 0x%p to 0x%p\n", | 1233 | "move %d from 0x%p to 0x%p\n", |
1234 | le32_to_cpu(newext->ee_block), | 1234 | le32_to_cpu(newext->ee_block), |
1235 | ext_pblock(newext), | 1235 | ext_pblock(newext), |
@@ -1464,7 +1464,7 @@ ext4_ext_in_cache(struct inode *inode, unsigned long block, | |||
1464 | ex->ee_block = cpu_to_le32(cex->ec_block); | 1464 | ex->ee_block = cpu_to_le32(cex->ec_block); |
1465 | ext4_ext_store_pblock(ex, cex->ec_start); | 1465 | ext4_ext_store_pblock(ex, cex->ec_start); |
1466 | ex->ee_len = cpu_to_le16(cex->ec_len); | 1466 | ex->ee_len = cpu_to_le16(cex->ec_len); |
1467 | ext_debug("%lu cached by %lu:%lu:"E3FSBLK"\n", | 1467 | ext_debug("%lu cached by %lu:%lu:%llu\n", |
1468 | (unsigned long) block, | 1468 | (unsigned long) block, |
1469 | (unsigned long) cex->ec_block, | 1469 | (unsigned long) cex->ec_block, |
1470 | (unsigned long) cex->ec_len, | 1470 | (unsigned long) cex->ec_len, |
@@ -1498,7 +1498,7 @@ int ext4_ext_rm_idx(handle_t *handle, struct inode *inode, | |||
1498 | path->p_hdr->eh_entries = cpu_to_le16(le16_to_cpu(path->p_hdr->eh_entries)-1); | 1498 | path->p_hdr->eh_entries = cpu_to_le16(le16_to_cpu(path->p_hdr->eh_entries)-1); |
1499 | if ((err = ext4_ext_dirty(handle, inode, path))) | 1499 | if ((err = ext4_ext_dirty(handle, inode, path))) |
1500 | return err; | 1500 | return err; |
1501 | ext_debug("index is empty, remove it, free block "E3FSBLK"\n", leaf); | 1501 | ext_debug("index is empty, remove it, free block %llu\n", leaf); |
1502 | bh = sb_find_get_block(inode->i_sb, leaf); | 1502 | bh = sb_find_get_block(inode->i_sb, leaf); |
1503 | ext4_forget(handle, 1, inode, bh, leaf); | 1503 | ext4_forget(handle, 1, inode, bh, leaf); |
1504 | ext4_free_blocks(handle, inode, leaf, 1); | 1504 | ext4_free_blocks(handle, inode, leaf, 1); |
@@ -1585,7 +1585,7 @@ static int ext4_remove_blocks(handle_t *handle, struct inode *inode, | |||
1585 | ext4_fsblk_t start; | 1585 | ext4_fsblk_t start; |
1586 | num = le32_to_cpu(ex->ee_block) + le16_to_cpu(ex->ee_len) - from; | 1586 | num = le32_to_cpu(ex->ee_block) + le16_to_cpu(ex->ee_len) - from; |
1587 | start = ext_pblock(ex) + le16_to_cpu(ex->ee_len) - num; | 1587 | start = ext_pblock(ex) + le16_to_cpu(ex->ee_len) - num; |
1588 | ext_debug("free last %lu blocks starting "E3FSBLK"\n", num, start); | 1588 | ext_debug("free last %lu blocks starting %llu\n", num, start); |
1589 | for (i = 0; i < num; i++) { | 1589 | for (i = 0; i < num; i++) { |
1590 | bh = sb_find_get_block(inode->i_sb, start + i); | 1590 | bh = sb_find_get_block(inode->i_sb, start + i); |
1591 | ext4_forget(handle, 0, inode, bh, start + i); | 1591 | ext4_forget(handle, 0, inode, bh, start + i); |
@@ -1699,7 +1699,7 @@ ext4_ext_rm_leaf(handle_t *handle, struct inode *inode, | |||
1699 | if (err) | 1699 | if (err) |
1700 | goto out; | 1700 | goto out; |
1701 | 1701 | ||
1702 | ext_debug("new extent: %u:%u:"E3FSBLK"\n", block, num, | 1702 | ext_debug("new extent: %u:%u:%llu\n", block, num, |
1703 | ext_pblock(ex)); | 1703 | ext_pblock(ex)); |
1704 | ex--; | 1704 | ex--; |
1705 | ex_ee_block = le32_to_cpu(ex->ee_block); | 1705 | ex_ee_block = le32_to_cpu(ex->ee_block); |
@@ -1816,7 +1816,7 @@ int ext4_ext_remove_space(struct inode *inode, unsigned long start) | |||
1816 | path[i].p_idx); | 1816 | path[i].p_idx); |
1817 | if (ext4_ext_more_to_rm(path + i)) { | 1817 | if (ext4_ext_more_to_rm(path + i)) { |
1818 | /* go to the next level */ | 1818 | /* go to the next level */ |
1819 | ext_debug("move to level %d (block "E3FSBLK")\n", | 1819 | ext_debug("move to level %d (block %llu)\n", |
1820 | i + 1, idx_pblock(path[i].p_idx)); | 1820 | i + 1, idx_pblock(path[i].p_idx)); |
1821 | memset(path + i + 1, 0, sizeof(*path)); | 1821 | memset(path + i + 1, 0, sizeof(*path)); |
1822 | path[i+1].p_bh = | 1822 | path[i+1].p_bh = |
@@ -1993,7 +1993,7 @@ int ext4_ext_get_blocks(handle_t *handle, struct inode *inode, | |||
1993 | newblock = iblock - ee_block + ee_start; | 1993 | newblock = iblock - ee_block + ee_start; |
1994 | /* number of remaining blocks in the extent */ | 1994 | /* number of remaining blocks in the extent */ |
1995 | allocated = ee_len - (iblock - ee_block); | 1995 | allocated = ee_len - (iblock - ee_block); |
1996 | ext_debug("%d fit into %lu:%d -> "E3FSBLK"\n", (int) iblock, | 1996 | ext_debug("%d fit into %lu:%d -> %llu\n", (int) iblock, |
1997 | ee_block, ee_len, newblock); | 1997 | ee_block, ee_len, newblock); |
1998 | ext4_ext_put_in_cache(inode, ee_block, ee_len, | 1998 | ext4_ext_put_in_cache(inode, ee_block, ee_len, |
1999 | ee_start, EXT4_EXT_CACHE_EXTENT); | 1999 | ee_start, EXT4_EXT_CACHE_EXTENT); |
@@ -2024,7 +2024,7 @@ int ext4_ext_get_blocks(handle_t *handle, struct inode *inode, | |||
2024 | newblock = ext4_new_blocks(handle, inode, goal, &allocated, &err); | 2024 | newblock = ext4_new_blocks(handle, inode, goal, &allocated, &err); |
2025 | if (!newblock) | 2025 | if (!newblock) |
2026 | goto out2; | 2026 | goto out2; |
2027 | ext_debug("allocate new block: goal "E3FSBLK", found "E3FSBLK"/%lu\n", | 2027 | ext_debug("allocate new block: goal %llu, found %llu/%lu\n", |
2028 | goal, newblock, allocated); | 2028 | goal, newblock, allocated); |
2029 | 2029 | ||
2030 | /* try to insert new extent into found leaf and return */ | 2030 | /* try to insert new extent into found leaf and return */ |
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index effc38afebe3..99b82b52b5f0 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -2115,7 +2115,7 @@ static void ext4_free_branches(handle_t *handle, struct inode *inode, | |||
2115 | */ | 2115 | */ |
2116 | if (!bh) { | 2116 | if (!bh) { |
2117 | ext4_error(inode->i_sb, "ext4_free_branches", | 2117 | ext4_error(inode->i_sb, "ext4_free_branches", |
2118 | "Read failure, inode=%lu, block="E3FSBLK, | 2118 | "Read failure, inode=%lu, block=%llu", |
2119 | inode->i_ino, nr); | 2119 | inode->i_ino, nr); |
2120 | continue; | 2120 | continue; |
2121 | } | 2121 | } |
@@ -2466,7 +2466,7 @@ static int __ext4_get_inode_loc(struct inode *inode, | |||
2466 | if (!bh) { | 2466 | if (!bh) { |
2467 | ext4_error (inode->i_sb, "ext4_get_inode_loc", | 2467 | ext4_error (inode->i_sb, "ext4_get_inode_loc", |
2468 | "unable to read inode block - " | 2468 | "unable to read inode block - " |
2469 | "inode=%lu, block="E3FSBLK, | 2469 | "inode=%lu, block=%llu", |
2470 | inode->i_ino, block); | 2470 | inode->i_ino, block); |
2471 | return -EIO; | 2471 | return -EIO; |
2472 | } | 2472 | } |
@@ -2548,7 +2548,7 @@ make_io: | |||
2548 | if (!buffer_uptodate(bh)) { | 2548 | if (!buffer_uptodate(bh)) { |
2549 | ext4_error(inode->i_sb, "ext4_get_inode_loc", | 2549 | ext4_error(inode->i_sb, "ext4_get_inode_loc", |
2550 | "unable to read inode block - " | 2550 | "unable to read inode block - " |
2551 | "inode=%lu, block="E3FSBLK, | 2551 | "inode=%lu, block=%llu", |
2552 | inode->i_ino, block); | 2552 | inode->i_ino, block); |
2553 | brelse(bh); | 2553 | brelse(bh); |
2554 | return -EIO; | 2554 | return -EIO; |
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index 3dbf91b82202..3e960677c2f2 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c | |||
@@ -64,7 +64,7 @@ static int verify_group_input(struct super_block *sb, | |||
64 | input->blocks_count); | 64 | input->blocks_count); |
65 | else if (!(bh = sb_bread(sb, end - 1))) | 65 | else if (!(bh = sb_bread(sb, end - 1))) |
66 | ext4_warning(sb, __FUNCTION__, | 66 | ext4_warning(sb, __FUNCTION__, |
67 | "Cannot read last block ("E3FSBLK")", | 67 | "Cannot read last block (%llu)", |
68 | end - 1); | 68 | end - 1); |
69 | else if (outside(input->block_bitmap, start, end)) | 69 | else if (outside(input->block_bitmap, start, end)) |
70 | ext4_warning(sb, __FUNCTION__, | 70 | ext4_warning(sb, __FUNCTION__, |
@@ -94,18 +94,18 @@ static int verify_group_input(struct super_block *sb, | |||
94 | else if (inside(input->block_bitmap, start, metaend)) | 94 | else if (inside(input->block_bitmap, start, metaend)) |
95 | ext4_warning(sb, __FUNCTION__, | 95 | ext4_warning(sb, __FUNCTION__, |
96 | "Block bitmap (%llu) in GDT table" | 96 | "Block bitmap (%llu) in GDT table" |
97 | " ("E3FSBLK"-"E3FSBLK")", | 97 | " (%llu-%llu)", |
98 | input->block_bitmap, start, metaend - 1); | 98 | input->block_bitmap, start, metaend - 1); |
99 | else if (inside(input->inode_bitmap, start, metaend)) | 99 | else if (inside(input->inode_bitmap, start, metaend)) |
100 | ext4_warning(sb, __FUNCTION__, | 100 | ext4_warning(sb, __FUNCTION__, |
101 | "Inode bitmap (%llu) in GDT table" | 101 | "Inode bitmap (%llu) in GDT table" |
102 | " ("E3FSBLK"-"E3FSBLK")", | 102 | " (%llu-%llu)", |
103 | input->inode_bitmap, start, metaend - 1); | 103 | input->inode_bitmap, start, metaend - 1); |
104 | else if (inside(input->inode_table, start, metaend) || | 104 | else if (inside(input->inode_table, start, metaend) || |
105 | inside(itend - 1, start, metaend)) | 105 | inside(itend - 1, start, metaend)) |
106 | ext4_warning(sb, __FUNCTION__, | 106 | ext4_warning(sb, __FUNCTION__, |
107 | "Inode table ("E3FSBLK"-"E3FSBLK") overlaps" | 107 | "Inode table (%llu-%llu) overlaps" |
108 | "GDT table ("E3FSBLK"-"E3FSBLK")", | 108 | "GDT table (%llu-%llu)", |
109 | input->inode_table, itend - 1, start, metaend - 1); | 109 | input->inode_table, itend - 1, start, metaend - 1); |
110 | else | 110 | else |
111 | err = 0; | 111 | err = 0; |
@@ -344,8 +344,8 @@ static int verify_reserved_gdb(struct super_block *sb, | |||
344 | if (le32_to_cpu(*p++) != | 344 | if (le32_to_cpu(*p++) != |
345 | grp * EXT4_BLOCKS_PER_GROUP(sb) + blk){ | 345 | grp * EXT4_BLOCKS_PER_GROUP(sb) + blk){ |
346 | ext4_warning(sb, __FUNCTION__, | 346 | ext4_warning(sb, __FUNCTION__, |
347 | "reserved GDT "E3FSBLK | 347 | "reserved GDT %llu" |
348 | " missing grp %d ("E3FSBLK")", | 348 | " missing grp %d (%llu)", |
349 | blk, grp, | 349 | blk, grp, |
350 | grp * | 350 | grp * |
351 | (ext4_fsblk_t)EXT4_BLOCKS_PER_GROUP(sb) + | 351 | (ext4_fsblk_t)EXT4_BLOCKS_PER_GROUP(sb) + |
@@ -424,7 +424,7 @@ static int add_new_gdb(handle_t *handle, struct inode *inode, | |||
424 | data = (__le32 *)dind->b_data; | 424 | data = (__le32 *)dind->b_data; |
425 | if (le32_to_cpu(data[gdb_num % EXT4_ADDR_PER_BLOCK(sb)]) != gdblock) { | 425 | if (le32_to_cpu(data[gdb_num % EXT4_ADDR_PER_BLOCK(sb)]) != gdblock) { |
426 | ext4_warning(sb, __FUNCTION__, | 426 | ext4_warning(sb, __FUNCTION__, |
427 | "new group %u GDT block "E3FSBLK" not reserved", | 427 | "new group %u GDT block %llu not reserved", |
428 | input->group, gdblock); | 428 | input->group, gdblock); |
429 | err = -EINVAL; | 429 | err = -EINVAL; |
430 | goto exit_dind; | 430 | goto exit_dind; |
@@ -547,7 +547,7 @@ static int reserve_backup_gdb(handle_t *handle, struct inode *inode, | |||
547 | for (res = 0; res < reserved_gdb; res++, blk++) { | 547 | for (res = 0; res < reserved_gdb; res++, blk++) { |
548 | if (le32_to_cpu(*data) != blk) { | 548 | if (le32_to_cpu(*data) != blk) { |
549 | ext4_warning(sb, __FUNCTION__, | 549 | ext4_warning(sb, __FUNCTION__, |
550 | "reserved block "E3FSBLK | 550 | "reserved block %llu" |
551 | " not at offset %ld", | 551 | " not at offset %ld", |
552 | blk, | 552 | blk, |
553 | (long)(data - (__le32 *)dind->b_data)); | 553 | (long)(data - (__le32 *)dind->b_data)); |
@@ -941,7 +941,7 @@ int ext4_group_extend(struct super_block *sb, struct ext4_super_block *es, | |||
941 | o_groups_count = EXT4_SB(sb)->s_groups_count; | 941 | o_groups_count = EXT4_SB(sb)->s_groups_count; |
942 | 942 | ||
943 | if (test_opt(sb, DEBUG)) | 943 | if (test_opt(sb, DEBUG)) |
944 | printk(KERN_DEBUG "EXT4-fs: extending last group from "E3FSBLK" uto "E3FSBLK" blocks\n", | 944 | printk(KERN_DEBUG "EXT4-fs: extending last group from %llu uto %llu blocks\n", |
945 | o_blocks_count, n_blocks_count); | 945 | o_blocks_count, n_blocks_count); |
946 | 946 | ||
947 | if (n_blocks_count == 0 || n_blocks_count == o_blocks_count) | 947 | if (n_blocks_count == 0 || n_blocks_count == o_blocks_count) |
@@ -949,7 +949,7 @@ int ext4_group_extend(struct super_block *sb, struct ext4_super_block *es, | |||
949 | 949 | ||
950 | if (n_blocks_count > (sector_t)(~0ULL) >> (sb->s_blocksize_bits - 9)) { | 950 | if (n_blocks_count > (sector_t)(~0ULL) >> (sb->s_blocksize_bits - 9)) { |
951 | printk(KERN_ERR "EXT4-fs: filesystem on %s:" | 951 | printk(KERN_ERR "EXT4-fs: filesystem on %s:" |
952 | " too large to resize to "E3FSBLK" blocks safely\n", | 952 | " too large to resize to %llu blocks safely\n", |
953 | sb->s_id, n_blocks_count); | 953 | sb->s_id, n_blocks_count); |
954 | if (sizeof(sector_t) < 8) | 954 | if (sizeof(sector_t) < 8) |
955 | ext4_warning(sb, __FUNCTION__, | 955 | ext4_warning(sb, __FUNCTION__, |
@@ -984,7 +984,7 @@ int ext4_group_extend(struct super_block *sb, struct ext4_super_block *es, | |||
984 | 984 | ||
985 | if (o_blocks_count + add < n_blocks_count) | 985 | if (o_blocks_count + add < n_blocks_count) |
986 | ext4_warning(sb, __FUNCTION__, | 986 | ext4_warning(sb, __FUNCTION__, |
987 | "will only finish group ("E3FSBLK | 987 | "will only finish group (%llu" |
988 | " blocks, %u new)", | 988 | " blocks, %u new)", |
989 | o_blocks_count + add, add); | 989 | o_blocks_count + add, add); |
990 | 990 | ||
@@ -1028,10 +1028,10 @@ int ext4_group_extend(struct super_block *sb, struct ext4_super_block *es, | |||
1028 | ext4_journal_dirty_metadata(handle, EXT4_SB(sb)->s_sbh); | 1028 | ext4_journal_dirty_metadata(handle, EXT4_SB(sb)->s_sbh); |
1029 | sb->s_dirt = 1; | 1029 | sb->s_dirt = 1; |
1030 | unlock_super(sb); | 1030 | unlock_super(sb); |
1031 | ext4_debug("freeing blocks %lu through "E3FSBLK"\n", o_blocks_count, | 1031 | ext4_debug("freeing blocks %lu through %llu\n", o_blocks_count, |
1032 | o_blocks_count + add); | 1032 | o_blocks_count + add); |
1033 | ext4_free_blocks_sb(handle, sb, o_blocks_count, add, &freed_blocks); | 1033 | ext4_free_blocks_sb(handle, sb, o_blocks_count, add, &freed_blocks); |
1034 | ext4_debug("freed blocks "E3FSBLK" through "E3FSBLK"\n", o_blocks_count, | 1034 | ext4_debug("freed blocks %llu through %llu\n", o_blocks_count, |
1035 | o_blocks_count + add); | 1035 | o_blocks_count + add); |
1036 | if ((err = ext4_journal_stop(handle))) | 1036 | if ((err = ext4_journal_stop(handle))) |
1037 | goto exit_put; | 1037 | goto exit_put; |
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index b91dffd7a031..d844175e60e8 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -1244,7 +1244,7 @@ static int ext4_check_descriptors (struct super_block * sb) | |||
1244 | { | 1244 | { |
1245 | ext4_error (sb, "ext4_check_descriptors", | 1245 | ext4_error (sb, "ext4_check_descriptors", |
1246 | "Block bitmap for group %d" | 1246 | "Block bitmap for group %d" |
1247 | " not in group (block "E3FSBLK")!", | 1247 | " not in group (block %llu)!", |
1248 | i, block_bitmap); | 1248 | i, block_bitmap); |
1249 | return 0; | 1249 | return 0; |
1250 | } | 1250 | } |
@@ -1253,7 +1253,7 @@ static int ext4_check_descriptors (struct super_block * sb) | |||
1253 | { | 1253 | { |
1254 | ext4_error (sb, "ext4_check_descriptors", | 1254 | ext4_error (sb, "ext4_check_descriptors", |
1255 | "Inode bitmap for group %d" | 1255 | "Inode bitmap for group %d" |
1256 | " not in group (block "E3FSBLK")!", | 1256 | " not in group (block %llu)!", |
1257 | i, inode_bitmap); | 1257 | i, inode_bitmap); |
1258 | return 0; | 1258 | return 0; |
1259 | } | 1259 | } |
@@ -1263,7 +1263,7 @@ static int ext4_check_descriptors (struct super_block * sb) | |||
1263 | { | 1263 | { |
1264 | ext4_error (sb, "ext4_check_descriptors", | 1264 | ext4_error (sb, "ext4_check_descriptors", |
1265 | "Inode table for group %d" | 1265 | "Inode table for group %d" |
1266 | " not in group (block "E3FSBLK")!", | 1266 | " not in group (block %llu)!", |
1267 | i, inode_table); | 1267 | i, inode_table); |
1268 | return 0; | 1268 | return 0; |
1269 | } | 1269 | } |
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index 90f7d5c0bae4..63233cd946a7 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c | |||
@@ -233,7 +233,7 @@ ext4_xattr_block_get(struct inode *inode, int name_index, const char *name, | |||
233 | atomic_read(&(bh->b_count)), le32_to_cpu(BHDR(bh)->h_refcount)); | 233 | atomic_read(&(bh->b_count)), le32_to_cpu(BHDR(bh)->h_refcount)); |
234 | if (ext4_xattr_check_block(bh)) { | 234 | if (ext4_xattr_check_block(bh)) { |
235 | bad_block: ext4_error(inode->i_sb, __FUNCTION__, | 235 | bad_block: ext4_error(inode->i_sb, __FUNCTION__, |
236 | "inode %lu: bad block "E3FSBLK, inode->i_ino, | 236 | "inode %lu: bad block %llu", inode->i_ino, |
237 | EXT4_I(inode)->i_file_acl); | 237 | EXT4_I(inode)->i_file_acl); |
238 | error = -EIO; | 238 | error = -EIO; |
239 | goto cleanup; | 239 | goto cleanup; |
@@ -375,7 +375,7 @@ ext4_xattr_block_list(struct inode *inode, char *buffer, size_t buffer_size) | |||
375 | atomic_read(&(bh->b_count)), le32_to_cpu(BHDR(bh)->h_refcount)); | 375 | atomic_read(&(bh->b_count)), le32_to_cpu(BHDR(bh)->h_refcount)); |
376 | if (ext4_xattr_check_block(bh)) { | 376 | if (ext4_xattr_check_block(bh)) { |
377 | ext4_error(inode->i_sb, __FUNCTION__, | 377 | ext4_error(inode->i_sb, __FUNCTION__, |
378 | "inode %lu: bad block "E3FSBLK, inode->i_ino, | 378 | "inode %lu: bad block %llu", inode->i_ino, |
379 | EXT4_I(inode)->i_file_acl); | 379 | EXT4_I(inode)->i_file_acl); |
380 | error = -EIO; | 380 | error = -EIO; |
381 | goto cleanup; | 381 | goto cleanup; |
@@ -647,7 +647,7 @@ ext4_xattr_block_find(struct inode *inode, struct ext4_xattr_info *i, | |||
647 | le32_to_cpu(BHDR(bs->bh)->h_refcount)); | 647 | le32_to_cpu(BHDR(bs->bh)->h_refcount)); |
648 | if (ext4_xattr_check_block(bs->bh)) { | 648 | if (ext4_xattr_check_block(bs->bh)) { |
649 | ext4_error(sb, __FUNCTION__, | 649 | ext4_error(sb, __FUNCTION__, |
650 | "inode %lu: bad block "E3FSBLK, inode->i_ino, | 650 | "inode %lu: bad block %llu", inode->i_ino, |
651 | EXT4_I(inode)->i_file_acl); | 651 | EXT4_I(inode)->i_file_acl); |
652 | error = -EIO; | 652 | error = -EIO; |
653 | goto cleanup; | 653 | goto cleanup; |
@@ -848,7 +848,7 @@ cleanup_dquot: | |||
848 | 848 | ||
849 | bad_block: | 849 | bad_block: |
850 | ext4_error(inode->i_sb, __FUNCTION__, | 850 | ext4_error(inode->i_sb, __FUNCTION__, |
851 | "inode %lu: bad block "E3FSBLK, inode->i_ino, | 851 | "inode %lu: bad block %llu", inode->i_ino, |
852 | EXT4_I(inode)->i_file_acl); | 852 | EXT4_I(inode)->i_file_acl); |
853 | goto cleanup; | 853 | goto cleanup; |
854 | 854 | ||
@@ -1077,14 +1077,14 @@ ext4_xattr_delete_inode(handle_t *handle, struct inode *inode) | |||
1077 | bh = sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl); | 1077 | bh = sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl); |
1078 | if (!bh) { | 1078 | if (!bh) { |
1079 | ext4_error(inode->i_sb, __FUNCTION__, | 1079 | ext4_error(inode->i_sb, __FUNCTION__, |
1080 | "inode %lu: block "E3FSBLK" read error", inode->i_ino, | 1080 | "inode %lu: block %llu read error", inode->i_ino, |
1081 | EXT4_I(inode)->i_file_acl); | 1081 | EXT4_I(inode)->i_file_acl); |
1082 | goto cleanup; | 1082 | goto cleanup; |
1083 | } | 1083 | } |
1084 | if (BHDR(bh)->h_magic != cpu_to_le32(EXT4_XATTR_MAGIC) || | 1084 | if (BHDR(bh)->h_magic != cpu_to_le32(EXT4_XATTR_MAGIC) || |
1085 | BHDR(bh)->h_blocks != cpu_to_le32(1)) { | 1085 | BHDR(bh)->h_blocks != cpu_to_le32(1)) { |
1086 | ext4_error(inode->i_sb, __FUNCTION__, | 1086 | ext4_error(inode->i_sb, __FUNCTION__, |
1087 | "inode %lu: bad block "E3FSBLK, inode->i_ino, | 1087 | "inode %lu: bad block %llu", inode->i_ino, |
1088 | EXT4_I(inode)->i_file_acl); | 1088 | EXT4_I(inode)->i_file_acl); |
1089 | goto cleanup; | 1089 | goto cleanup; |
1090 | } | 1090 | } |