summaryrefslogtreecommitdiff
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-27 03:13:38 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-27 03:13:38 +0300
commitcf516d08eceb4c442f0f2f1a73ebf994b1dbf0ed (patch)
treea56d5024a453bb323039f7c481ac17738269e24f /fs/btrfs/file.c
parent047e6646579c2853afba0111f573796daf4fd485 (diff)
parent32b88194f71d6ae7768a29f87fbba454728273ee (diff)
downloadlinux-cf516d08eceb4c442f0f2f1a73ebf994b1dbf0ed.tar.xz
Merge 4.3-rc7 into staging-next
We want the other staging patches in this branch as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index b823fac91c92..8c6f247ba81d 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -2584,7 +2584,7 @@ static long btrfs_fallocate(struct file *file, int mode,
alloc_start);
if (ret)
goto out;
- } else {
+ } else if (offset + len > inode->i_size) {
/*
* If we are fallocating from the end of the file onward we
* need to zero out the end of the page if i_size lands in the