diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-09-08 23:00:52 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-09-08 23:00:52 -0400 |
commit | 4776004f54e4190e104caf620fd0fa5909412236 (patch) | |
tree | ebd37cb847d58d434ad4ea3bd98c77256f05347e /fs/ext4/balloc.c | |
parent | 1f7c14c62ce63805f9574664a6c6de3633d4a354 (diff) |
ext4: Add printk priority levels to clean up checkpatch warnings
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r-- | fs/ext4/balloc.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index 00a94d5866c2..7aac2025ba9c 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c | |||
@@ -379,26 +379,28 @@ restart: | |||
379 | bad = 0; | 379 | bad = 0; |
380 | prev = NULL; | 380 | prev = NULL; |
381 | 381 | ||
382 | printk("Block Allocation Reservation Windows Map (%s):\n", fn); | 382 | printk(KERN_DEBUG "Block Allocation Reservation " |
383 | "Windows Map (%s):\n", fn); | ||
383 | while (n) { | 384 | while (n) { |
384 | rsv = rb_entry(n, struct ext4_reserve_window_node, rsv_node); | 385 | rsv = rb_entry(n, struct ext4_reserve_window_node, rsv_node); |
385 | if (verbose) | 386 | if (verbose) |
386 | printk("reservation window 0x%p " | 387 | printk(KERN_DEBUG "reservation window 0x%p " |
387 | "start: %llu, end: %llu\n", | 388 | "start: %llu, end: %llu\n", |
388 | rsv, rsv->rsv_start, rsv->rsv_end); | 389 | rsv, rsv->rsv_start, rsv->rsv_end); |
389 | if (rsv->rsv_start && rsv->rsv_start >= rsv->rsv_end) { | 390 | if (rsv->rsv_start && rsv->rsv_start >= rsv->rsv_end) { |
390 | printk("Bad reservation %p (start >= end)\n", | 391 | printk(KERN_DEBUG "Bad reservation %p (start >= end)\n", |
391 | rsv); | 392 | rsv); |
392 | bad = 1; | 393 | bad = 1; |
393 | } | 394 | } |
394 | if (prev && prev->rsv_end >= rsv->rsv_start) { | 395 | if (prev && prev->rsv_end >= rsv->rsv_start) { |
395 | printk("Bad reservation %p (prev->end >= start)\n", | 396 | printk(KERN_DEBUG "Bad reservation %p " |
396 | rsv); | 397 | "(prev->end >= start)\n", rsv); |
397 | bad = 1; | 398 | bad = 1; |
398 | } | 399 | } |
399 | if (bad) { | 400 | if (bad) { |
400 | if (!verbose) { | 401 | if (!verbose) { |
401 | printk("Restarting reservation walk in verbose mode\n"); | 402 | printk(KERN_DEBUG "Restarting reservation " |
403 | "walk in verbose mode\n"); | ||
402 | verbose = 1; | 404 | verbose = 1; |
403 | goto restart; | 405 | goto restart; |
404 | } | 406 | } |
@@ -406,7 +408,7 @@ restart: | |||
406 | n = rb_next(n); | 408 | n = rb_next(n); |
407 | prev = rsv; | 409 | prev = rsv; |
408 | } | 410 | } |
409 | printk("Window map complete.\n"); | 411 | printk(KERN_DEBUG "Window map complete.\n"); |
410 | BUG_ON(bad); | 412 | BUG_ON(bad); |
411 | } | 413 | } |
412 | #define rsv_window_dump(root, verbose) \ | 414 | #define rsv_window_dump(root, verbose) \ |
@@ -1702,7 +1704,7 @@ ext4_fsblk_t ext4_old_new_blocks(handle_t *handle, struct inode *inode, | |||
1702 | sb = inode->i_sb; | 1704 | sb = inode->i_sb; |
1703 | if (!sb) { | 1705 | if (!sb) { |
1704 | *errp = -ENODEV; | 1706 | *errp = -ENODEV; |
1705 | printk("ext4_new_block: nonexistent device"); | 1707 | printk(KERN_ERR "ext4_new_block: nonexistent superblock"); |
1706 | return 0; | 1708 | return 0; |
1707 | } | 1709 | } |
1708 | 1710 | ||
@@ -1884,8 +1886,8 @@ allocated: | |||
1884 | for (i = 0; i < num; i++) { | 1886 | for (i = 0; i < num; i++) { |
1885 | if (ext4_test_bit(grp_alloc_blk+i, | 1887 | if (ext4_test_bit(grp_alloc_blk+i, |
1886 | bh2jh(bitmap_bh)->b_committed_data)) { | 1888 | bh2jh(bitmap_bh)->b_committed_data)) { |
1887 | printk("%s: block was unexpectedly set in " | 1889 | printk(KERN_ERR "%s: block was unexpectedly " |
1888 | "b_committed_data\n", __func__); | 1890 | "set in b_committed_data\n", __func__); |
1889 | } | 1891 | } |
1890 | } | 1892 | } |
1891 | } | 1893 | } |
@@ -2093,10 +2095,9 @@ ext4_fsblk_t ext4_count_free_blocks(struct super_block *sb) | |||
2093 | bitmap_count += x; | 2095 | bitmap_count += x; |
2094 | } | 2096 | } |
2095 | brelse(bitmap_bh); | 2097 | brelse(bitmap_bh); |
2096 | printk("ext4_count_free_blocks: stored = %llu" | 2098 | printk(KERN_DEBUG "ext4_count_free_blocks: stored = %llu" |
2097 | ", computed = %llu, %llu\n", | 2099 | ", computed = %llu, %llu\n", ext4_free_blocks_count(es), |
2098 | ext4_free_blocks_count(es), | 2100 | desc_count, bitmap_count); |
2099 | desc_count, bitmap_count); | ||
2100 | return bitmap_count; | 2101 | return bitmap_count; |
2101 | #else | 2102 | #else |
2102 | desc_count = 0; | 2103 | desc_count = 0; |