Cosmetical off-by-one

Technically, the case when all the blocks are released
is not a sanity check.
Move further the comment while here.

Suggested by:	bde
MFC after:	3 days
This commit is contained in:
Pedro F. Giffuni 2013-01-26 21:50:52 +00:00
parent e6af9f3a37
commit 879aeda7b6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245950

View File

@ -341,9 +341,9 @@ ext2_truncate(vp, length, flags, cred, td)
* Put back the real size.
*/
oip->i_size = length;
if (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);