diff --git a/sys/fs/ext2fs/ext2_inode.c b/sys/fs/ext2fs/ext2_inode.c index b2feaa17d9e8..82a3782ad977 100644 --- a/sys/fs/ext2fs/ext2_inode.c +++ b/sys/fs/ext2fs/ext2_inode.c @@ -341,10 +341,9 @@ ext2_truncate(vp, length, flags, cred, td) * Put back the real size. */ oip->i_size = length; - oip->i_blocks -= blocksreleased; if (oip->i_blocks > blocksreleased) oip->i_blocks -= blocksreleased; - else /* sanity */ + else /* sanity */ oip->i_blocks = 0; oip->i_flag |= IN_CHANGE; vnode_pager_setsize(ovp, length);