projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
btrfs: fix free space calculation in dump_space_info()
[cascardo/linux.git]
/
mm
/
shmem.c
diff --git
a/mm/shmem.c
b/mm/shmem.c
index
a361449
..
24463b6
100644
(file)
--- a/
mm/shmem.c
+++ b/
mm/shmem.c
@@
-2227,7
+2227,7
@@
static long shmem_fallocate(struct file *file, int mode, loff_t offset,
/* Remove the !PageUptodate pages we added */
shmem_undo_range(inode,
(loff_t)start << PAGE_SHIFT,
/* Remove the !PageUptodate pages we added */
shmem_undo_range(inode,
(loff_t)start << PAGE_SHIFT,
- (
loff_t)index << PAGE_SHIFT
, true);
+ (
(loff_t)index << PAGE_SHIFT) - 1
, true);
goto undone;
}
goto undone;
}