X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fext4%2Fblock_validity.c;h=5b6973fbf1bdde32bb1c2a4b6ff73a9d2df9d692;hb=27efd7e2e6d052e543425dba172d96f42704ef65;hp=538c48655084594482d94c3ff38e949f4cb6ffd7;hpb=3e766fd41ddc31c47ec5b2840c6a45803d35ff40;p=~andy%2Flinux diff --git a/fs/ext4/block_validity.c b/fs/ext4/block_validity.c index 538c4865508..5b6973fbf1b 100644 --- a/fs/ext4/block_validity.c +++ b/fs/ext4/block_validity.c @@ -72,9 +72,9 @@ static int add_system_zone(struct ext4_sb_info *sbi, else if (start_blk >= (entry->start_blk + entry->count)) n = &(*n)->rb_right; else { - if (start_blk + count > (entry->start_blk + + if (start_blk + count > (entry->start_blk + entry->count)) - entry->count = (start_blk + count - + entry->count = (start_blk + count - entry->start_blk); new_node = *n; new_entry = rb_entry(new_node, struct ext4_system_zone,