Btrfs: don't change file extent's ram_bytes in btrfs_drop_extents
authorYan Zheng <zheng.yan@oracle.com>
Tue, 6 Jan 2009 14:58:02 +0000 (09:58 -0500)
committerChris Mason <chris.mason@oracle.com>
Tue, 6 Jan 2009 14:58:02 +0000 (09:58 -0500)
commit1ba12553f3600ffebad226c5204ab0e46df98161
tree081d39d935782a34d4726a55f608de3237b57d9d
parent180591bcfed1a2cec048abb21d3dab840625caab
Btrfs: don't change file extent's ram_bytes in btrfs_drop_extents

btrfs_drop_extents doesn't change file extent's ram_bytes
in the case of booked extent. To be consistent, we should
also not change ram_bytes when truncating existing extent.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
fs/btrfs/file.c