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/ext4/resize.c | |
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/ext4/resize.c')
-rw-r--r-- | fs/ext4/resize.c | 28 |
1 files changed, 14 insertions, 14 deletions
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; |