Skip to contentSkip to conversation

Ext2: remove a useless check for the function ext2_free_blocks

PATCH In review Wang Shilong 1 participant 1 message Jan 26, 2013 ext2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Ext2: remove a useless check for the function ext2_free_blocks

From: Wang Shilong <[email protected]>

Because 'block + count < block' always comes to false, it is useles to have this check,just remove it.

---
 fs/ext2/balloc.c | 1 -
 1 file changed, 1 deletion(-)
fs/ext2/balloc.c +0 -1
index 2616d0e..081929c 100644
@@ -498,7 +498,6 @@ void ext2_free_blocks (struct inode * inode, unsigned long block,
 	unsigned freed = 0, group_freed;
 
 	if (block < le32_to_cpu(es->s_first_data_block) ||
-	    block + count < block ||
 	    block + count > le32_to_cpu(es->s_blocks_count)) {
 		ext2_error (sb, "ext2_free_blocks",
 			    "Freeing blocks not in datazone - "

-- 1.7.11.7