Skip to contentSkip to conversation

ext4: delete dead code

PATCH In review Shaohua Li 3 participants 3 messages Apr 14, 2011 – Apr 18, 2011 ext4 file system

lore
Share & tools
lore

Shaohua Li

author
#0 lore raw

PATCH 1/1 ext4: delete dead code

percpu_counter_sum_positive never returns negative.

---
 fs/ext4/balloc.c |    5 -----
 1 file changed, 5 deletions(-)
fs/ext4/balloc.c +0 -5
Index: linux/fs/ext4/balloc.c
===================================================================
@@ -507,11 +507,6 @@ static int ext4_has_free_blocks(struct e
 						EXT4_FREEBLOCKS_WATERMARK) {
 		free_blocks  = percpu_counter_sum_positive(fbc);
 		dirty_blocks = percpu_counter_sum_positive(dbc);
-		if (dirty_blocks < 0) {
-			printk(KERN_CRIT "Dirty block accounting "
-					"went wrong %lld\n",
-					(long long)dirty_blocks);
-		}
 	}
 	/* Check whether we have space after
 	 * accounting for current dirty blocks & root reserved blocks.