summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2013-08-29 16:43:28 -0400
committerChris Mason <chris.mason@fusionio.com>2013-09-01 08:16:40 -0400
commit7f4f6e0a3f6db9c214de38c792c483b8076bcd6a (patch)
treeaaf7daed23b75d8c5400cee9cc39f12db134a7b3 /fs/btrfs/disk-io.c
parentf45388f3874535062526ec071284d836f5a4b5de (diff)
Btrfs: only update disk_i_size as we remove extents
This fixes a problem where if we fail a truncate we will leave the i_size set where we wanted to truncate to instead of where we were able to truncate to. Fix this by making btrfs_truncate_inode_items do the disk_i_size update as it removes extents, that way it will always be consistent with where its extents are. Then if the truncate fails at all we can update the in-ram i_size with what we have on disk and delete the orphan item. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions