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 ea9f10bb089c..c98805c35bab 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 | ||
@@ -2952,7 +2954,7 @@ const struct file_operations btrfs_file_operations = { | |||
2952 | .fallocate = btrfs_fallocate, | 2954 | .fallocate = btrfs_fallocate, |
2953 | .unlocked_ioctl = btrfs_ioctl, | 2955 | .unlocked_ioctl = btrfs_ioctl, |
2954 | #ifdef CONFIG_COMPAT | 2956 | #ifdef CONFIG_COMPAT |
2955 | .compat_ioctl = btrfs_ioctl, | 2957 | .compat_ioctl = btrfs_compat_ioctl, |
2956 | #endif | 2958 | #endif |
2957 | .copy_file_range = btrfs_copy_file_range, | 2959 | .copy_file_range = btrfs_copy_file_range, |
2958 | .clone_file_range = btrfs_clone_file_range, | 2960 | .clone_file_range = btrfs_clone_file_range, |