diff options
Diffstat (limited to 'fs/btrfs/dir-item.c')
-rw-r--r-- | fs/btrfs/dir-item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c index 6f19de41b878..514a1dc337a8 100644 --- a/fs/btrfs/dir-item.c +++ b/fs/btrfs/dir-item.c | |||
@@ -249,7 +249,7 @@ int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans, | |||
249 | memmove_extent_buffer(leaf, ptr, ptr + sub_item_len, | 249 | memmove_extent_buffer(leaf, ptr, ptr + sub_item_len, |
250 | item_len - (ptr + sub_item_len - start)); | 250 | item_len - (ptr + sub_item_len - start)); |
251 | ret = btrfs_truncate_item(trans, root, path, | 251 | ret = btrfs_truncate_item(trans, root, path, |
252 | item_len - sub_item_len); | 252 | item_len - sub_item_len, 1); |
253 | } | 253 | } |
254 | return 0; | 254 | return 0; |
255 | } | 255 | } |