summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_map.c
diff options
context:
space:
mode:
authorYan <yanzheng@21cn.com>2007-11-07 13:31:09 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:57 -0400
commit008630c17cc5654e141c7fd24a3e737de643fec1 (patch)
tree5f46b4c573d4410cdf514158152fbf511861afe9 /fs/btrfs/extent_map.c
parent34a3821873aeabff2607c8093bce82cd1fbcfd60 (diff)
downloadlinux-008630c17cc5654e141c7fd24a3e737de643fec1.tar.bz2
Properly delete csum item in btrfs_truncate_in_trans.
When 'item_end' is equal to 'inode->i_size', 'found_type' is updated and current item is skipped. This behavior is correct for extent item, but incorrect for csum item. For example, there is a csum item with 'offset == 0'. When deleting the inode, 'inode->i_size' is set to 0, so the csum item isn't deleted. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.c')
0 files changed, 0 insertions, 0 deletions