diff options
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 8d7b5a45c005..af059c44684d 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -1696,7 +1696,9 @@ again: | |||
1696 | btrfs_end_write_no_snapshoting(root); | 1696 | btrfs_end_write_no_snapshoting(root); |
1697 | btrfs_delalloc_release_metadata(inode, release_bytes); | 1697 | btrfs_delalloc_release_metadata(inode, release_bytes); |
1698 | } else { | 1698 | } else { |
1699 | btrfs_delalloc_release_space(inode, pos, release_bytes); | 1699 | btrfs_delalloc_release_space(inode, |
1700 | round_down(pos, root->sectorsize), | ||
1701 | release_bytes); | ||
1700 | } | 1702 | } |
1701 | } | 1703 | } |
1702 | 1704 | ||
@@ -2956,7 +2958,7 @@ const struct file_operations btrfs_file_operations = { | |||
2956 | .fallocate = btrfs_fallocate, | 2958 | .fallocate = btrfs_fallocate, |
2957 | .unlocked_ioctl = btrfs_ioctl, | 2959 | .unlocked_ioctl = btrfs_ioctl, |
2958 | #ifdef CONFIG_COMPAT | 2960 | #ifdef CONFIG_COMPAT |
2959 | .compat_ioctl = btrfs_ioctl, | 2961 | .compat_ioctl = btrfs_compat_ioctl, |
2960 | #endif | 2962 | #endif |
2961 | .copy_file_range = btrfs_copy_file_range, | 2963 | .copy_file_range = btrfs_copy_file_range, |
2962 | .clone_file_range = btrfs_clone_file_range, | 2964 | .clone_file_range = btrfs_clone_file_range, |