aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorChris Mason <clm@fb.com>2016-05-17 17:24:44 -0400
committerChris Mason <clm@fb.com>2016-05-17 17:24:44 -0400
commita88336d13c66fc171f336c6332fcb67339894e08 (patch)
tree595935ba3afc91dce9be83ca65932f3cf1379436 /fs/btrfs/file.c
parent02da2d72174c61988eb4456b53f405e3ebdebce4 (diff)
parent680834ca0ad4e9827048d4bda1e38db69c3dd1e4 (diff)
Merge branch 'for-chris-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux into for-linus-4.7
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c6
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,