Skip to content
Commit bab9fb03 authored by Yan's avatar Yan Committed by Chris Mason
Browse files

Btrfs: truncate: don't update inode->i_blocks when extent is a hole



I think check whether extent is a hole before update 'inode->i_blocks'
is unconditional required. (original codes check it only when
del_item isn't equal to 0)

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 23223584
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment